@primitivedotdev/sdk 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +3 -3
- package/dist/{api-JvyzQsXn.js → api-DoB7DrgV.js} +364 -22
- package/dist/contract/index.d.ts +2 -2
- package/dist/contract/index.js +1 -1
- package/dist/{errors-7E9sW9eX.d.ts → errors-DyuAXctD.d.ts} +1 -1
- package/dist/{index-DdSffRr0.d.ts → index-BDjVGtc8.d.ts} +455 -7
- package/dist/{index-DR978rq5.d.ts → index-iZWfb98V.d.ts} +275 -4
- package/dist/index.d.ts +8 -6
- package/dist/index.js +7 -4
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-CvXrZUzc.js → operations.generated-XrEy5EtX.js} +636 -3
- package/dist/parser/index.d.ts +1 -1
- package/dist/{types-yNU-Oiea.d.ts → types-QT2ss9ho.d.ts} +207 -3
- package/dist/webhook/index.d.ts +4 -4
- package/dist/webhook/index.js +1 -1
- package/dist/{webhook-BAwK8EOG.js → webhook-CwjCyFv-.js} +2559 -224
- package/dist/x402/index.d.ts +263 -0
- package/dist/x402/index.js +320 -0
- package/package.json +10 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ReceivedEmail } from "./errors-
|
|
1
|
+
import { m as ReceivedEmail } from "./errors-DyuAXctD.js";
|
|
2
2
|
|
|
3
3
|
//#region ../packages/api-core/src/api/core/auth.gen.d.ts
|
|
4
4
|
type AuthToken = string | undefined;
|
|
@@ -705,6 +705,88 @@ type AgentSignupVerifyResult = {
|
|
|
705
705
|
*/
|
|
706
706
|
orgs: Array<AgentOrgRef>;
|
|
707
707
|
};
|
|
708
|
+
/**
|
|
709
|
+
* Plan-derived quota limits for an account.
|
|
710
|
+
*/
|
|
711
|
+
type PlanLimits = {
|
|
712
|
+
storage_mb: number;
|
|
713
|
+
send_per_hour: number;
|
|
714
|
+
send_per_day: number;
|
|
715
|
+
api_per_minute: number;
|
|
716
|
+
webhooks_max_global: number | null;
|
|
717
|
+
webhooks_per_domain: boolean;
|
|
718
|
+
filters_per_domain: boolean;
|
|
719
|
+
spam_thresholds_per_domain: boolean;
|
|
720
|
+
};
|
|
721
|
+
type CreateAgentAccountInput = {
|
|
722
|
+
/**
|
|
723
|
+
* Must be true to accept the Terms of Service and Privacy Policy.
|
|
724
|
+
*/
|
|
725
|
+
terms_accepted: true;
|
|
726
|
+
/**
|
|
727
|
+
* Optional label for the device or agent creating the account.
|
|
728
|
+
*/
|
|
729
|
+
device_name?: string;
|
|
730
|
+
};
|
|
731
|
+
/**
|
|
732
|
+
* In-band pointer to the upgrade path for an agent account.
|
|
733
|
+
*/
|
|
734
|
+
type AgentAccountUpgradeHint = {
|
|
735
|
+
plan: 'developer';
|
|
736
|
+
description: string;
|
|
737
|
+
claim_path: string;
|
|
738
|
+
};
|
|
739
|
+
type AgentAccountResult = {
|
|
740
|
+
/**
|
|
741
|
+
* One-time API key (prefixed `prim_`). Shown once; store it securely.
|
|
742
|
+
*/
|
|
743
|
+
api_key: string;
|
|
744
|
+
org_id: string;
|
|
745
|
+
/**
|
|
746
|
+
* Provisioned managed inbox FQDN, or null if the inbox publish was deferred.
|
|
747
|
+
*/
|
|
748
|
+
address: string | null;
|
|
749
|
+
plan: 'agent';
|
|
750
|
+
limits: PlanLimits;
|
|
751
|
+
upgrade: AgentAccountUpgradeHint;
|
|
752
|
+
};
|
|
753
|
+
type StartAgentClaimInput = {
|
|
754
|
+
/**
|
|
755
|
+
* Email to confirm. Must not already belong to a Primitive account.
|
|
756
|
+
*/
|
|
757
|
+
email: string;
|
|
758
|
+
};
|
|
759
|
+
type AgentClaimStartResult = {
|
|
760
|
+
claim_session_id: string;
|
|
761
|
+
resend_after_seconds: number;
|
|
762
|
+
expires_in_seconds: number;
|
|
763
|
+
};
|
|
764
|
+
type VerifyAgentClaimInput = {
|
|
765
|
+
/**
|
|
766
|
+
* The verification code emailed by the claim start step.
|
|
767
|
+
*/
|
|
768
|
+
verification_code: string;
|
|
769
|
+
};
|
|
770
|
+
type AgentClaimResult = {
|
|
771
|
+
org_id: string;
|
|
772
|
+
plan: 'developer';
|
|
773
|
+
email: string;
|
|
774
|
+
limits: PlanLimits;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* No fields; an empty object is accepted.
|
|
778
|
+
*/
|
|
779
|
+
type CreateAgentClaimLinkInput = {
|
|
780
|
+
[key: string]: never;
|
|
781
|
+
};
|
|
782
|
+
type AgentClaimLinkResult = {
|
|
783
|
+
claim_token: string;
|
|
784
|
+
/**
|
|
785
|
+
* Browser URL to hand to a human, or null if no web origin is configured.
|
|
786
|
+
*/
|
|
787
|
+
claim_url: string | null;
|
|
788
|
+
expires_in_seconds: number;
|
|
789
|
+
};
|
|
708
790
|
type CliLogoutInput = {
|
|
709
791
|
/**
|
|
710
792
|
* Optional id guard; when provided it must match the authenticated OAuth grant id or API key id
|
|
@@ -729,6 +811,18 @@ type Account = {
|
|
|
729
811
|
id: string;
|
|
730
812
|
email: string;
|
|
731
813
|
plan: string;
|
|
814
|
+
limits: PlanLimits;
|
|
815
|
+
/**
|
|
816
|
+
* Granted org entitlement keys (sorted). A headless caller reads its
|
|
817
|
+
* capabilities here — e.g. an emailless agent seeing only
|
|
818
|
+
* ["send_mail", "send_to_known_addresses"] knows it is reply-only.
|
|
819
|
+
*
|
|
820
|
+
*/
|
|
821
|
+
entitlements: Array<string>;
|
|
822
|
+
/**
|
|
823
|
+
* The managed inbox FQDN to reply as, or null if the org has no managed inbox.
|
|
824
|
+
*/
|
|
825
|
+
managed_inbox_address: string | null;
|
|
732
826
|
created_at: string;
|
|
733
827
|
onboarding_completed?: boolean;
|
|
734
828
|
onboarding_step?: string | null;
|
|
@@ -3159,6 +3253,146 @@ type VerifyAgentSignupResponses = {
|
|
|
3159
3253
|
};
|
|
3160
3254
|
};
|
|
3161
3255
|
type VerifyAgentSignupResponse = VerifyAgentSignupResponses[keyof VerifyAgentSignupResponses];
|
|
3256
|
+
type CreateAgentAccountData = {
|
|
3257
|
+
body: CreateAgentAccountInput;
|
|
3258
|
+
path?: never;
|
|
3259
|
+
query?: never;
|
|
3260
|
+
url: '/agent/accounts';
|
|
3261
|
+
};
|
|
3262
|
+
type CreateAgentAccountErrors = {
|
|
3263
|
+
/**
|
|
3264
|
+
* Invalid request parameters
|
|
3265
|
+
*/
|
|
3266
|
+
400: ErrorResponse;
|
|
3267
|
+
/**
|
|
3268
|
+
* Rate limit exceeded
|
|
3269
|
+
*/
|
|
3270
|
+
429: ErrorResponse;
|
|
3271
|
+
};
|
|
3272
|
+
type CreateAgentAccountError = CreateAgentAccountErrors[keyof CreateAgentAccountErrors];
|
|
3273
|
+
type CreateAgentAccountResponses = {
|
|
3274
|
+
/**
|
|
3275
|
+
* Agent account created; the API key is returned once
|
|
3276
|
+
*/
|
|
3277
|
+
200: SuccessEnvelope & {
|
|
3278
|
+
data?: AgentAccountResult;
|
|
3279
|
+
};
|
|
3280
|
+
};
|
|
3281
|
+
type CreateAgentAccountResponse = CreateAgentAccountResponses[keyof CreateAgentAccountResponses];
|
|
3282
|
+
type StartAgentClaimData = {
|
|
3283
|
+
body: StartAgentClaimInput;
|
|
3284
|
+
path?: never;
|
|
3285
|
+
query?: never;
|
|
3286
|
+
url: '/agent/claim/start';
|
|
3287
|
+
};
|
|
3288
|
+
type StartAgentClaimErrors = {
|
|
3289
|
+
/**
|
|
3290
|
+
* Invalid request parameters
|
|
3291
|
+
*/
|
|
3292
|
+
400: ErrorResponse;
|
|
3293
|
+
/**
|
|
3294
|
+
* Invalid or missing API key
|
|
3295
|
+
*/
|
|
3296
|
+
401: ErrorResponse;
|
|
3297
|
+
/**
|
|
3298
|
+
* Resource not found
|
|
3299
|
+
*/
|
|
3300
|
+
404: ErrorResponse;
|
|
3301
|
+
/**
|
|
3302
|
+
* The email is already in use, or the account is not claimable
|
|
3303
|
+
*/
|
|
3304
|
+
409: ErrorResponse;
|
|
3305
|
+
/**
|
|
3306
|
+
* Rate limit exceeded
|
|
3307
|
+
*/
|
|
3308
|
+
429: ErrorResponse;
|
|
3309
|
+
};
|
|
3310
|
+
type StartAgentClaimError = StartAgentClaimErrors[keyof StartAgentClaimErrors];
|
|
3311
|
+
type StartAgentClaimResponses = {
|
|
3312
|
+
/**
|
|
3313
|
+
* Claim started and verification email sent
|
|
3314
|
+
*/
|
|
3315
|
+
200: SuccessEnvelope & {
|
|
3316
|
+
data?: AgentClaimStartResult;
|
|
3317
|
+
};
|
|
3318
|
+
};
|
|
3319
|
+
type StartAgentClaimResponse = StartAgentClaimResponses[keyof StartAgentClaimResponses];
|
|
3320
|
+
type VerifyAgentClaimData = {
|
|
3321
|
+
body: VerifyAgentClaimInput;
|
|
3322
|
+
path?: never;
|
|
3323
|
+
query?: never;
|
|
3324
|
+
url: '/agent/claim/verify';
|
|
3325
|
+
};
|
|
3326
|
+
type VerifyAgentClaimErrors = {
|
|
3327
|
+
/**
|
|
3328
|
+
* Invalid request parameters
|
|
3329
|
+
*/
|
|
3330
|
+
400: ErrorResponse;
|
|
3331
|
+
/**
|
|
3332
|
+
* Invalid or missing API key
|
|
3333
|
+
*/
|
|
3334
|
+
401: ErrorResponse;
|
|
3335
|
+
/**
|
|
3336
|
+
* Resource not found
|
|
3337
|
+
*/
|
|
3338
|
+
404: ErrorResponse;
|
|
3339
|
+
/**
|
|
3340
|
+
* The account is already claimed, or the email is in use
|
|
3341
|
+
*/
|
|
3342
|
+
409: ErrorResponse;
|
|
3343
|
+
/**
|
|
3344
|
+
* The claim or its verification code has expired
|
|
3345
|
+
*/
|
|
3346
|
+
410: ErrorResponse;
|
|
3347
|
+
/**
|
|
3348
|
+
* Rate limit exceeded
|
|
3349
|
+
*/
|
|
3350
|
+
429: ErrorResponse;
|
|
3351
|
+
};
|
|
3352
|
+
type VerifyAgentClaimError = VerifyAgentClaimErrors[keyof VerifyAgentClaimErrors];
|
|
3353
|
+
type VerifyAgentClaimResponses = {
|
|
3354
|
+
/**
|
|
3355
|
+
* Claim verified; account upgraded to developer
|
|
3356
|
+
*/
|
|
3357
|
+
200: SuccessEnvelope & {
|
|
3358
|
+
data?: AgentClaimResult;
|
|
3359
|
+
};
|
|
3360
|
+
};
|
|
3361
|
+
type VerifyAgentClaimResponse = VerifyAgentClaimResponses[keyof VerifyAgentClaimResponses];
|
|
3362
|
+
type CreateAgentClaimLinkData = {
|
|
3363
|
+
body?: CreateAgentClaimLinkInput;
|
|
3364
|
+
path?: never;
|
|
3365
|
+
query?: never;
|
|
3366
|
+
url: '/agent/claim/link';
|
|
3367
|
+
};
|
|
3368
|
+
type CreateAgentClaimLinkErrors = {
|
|
3369
|
+
/**
|
|
3370
|
+
* Invalid or missing API key
|
|
3371
|
+
*/
|
|
3372
|
+
401: ErrorResponse;
|
|
3373
|
+
/**
|
|
3374
|
+
* Resource not found
|
|
3375
|
+
*/
|
|
3376
|
+
404: ErrorResponse;
|
|
3377
|
+
/**
|
|
3378
|
+
* The account is not claimable (not an agent account, or already claimed)
|
|
3379
|
+
*/
|
|
3380
|
+
409: ErrorResponse;
|
|
3381
|
+
/**
|
|
3382
|
+
* Rate limit exceeded
|
|
3383
|
+
*/
|
|
3384
|
+
429: ErrorResponse;
|
|
3385
|
+
};
|
|
3386
|
+
type CreateAgentClaimLinkError = CreateAgentClaimLinkErrors[keyof CreateAgentClaimLinkErrors];
|
|
3387
|
+
type CreateAgentClaimLinkResponses = {
|
|
3388
|
+
/**
|
|
3389
|
+
* Claim link created
|
|
3390
|
+
*/
|
|
3391
|
+
200: SuccessEnvelope & {
|
|
3392
|
+
data?: AgentClaimLinkResult;
|
|
3393
|
+
};
|
|
3394
|
+
};
|
|
3395
|
+
type CreateAgentClaimLinkResponse = CreateAgentClaimLinkResponses[keyof CreateAgentClaimLinkResponses];
|
|
3162
3396
|
type CliLogoutData = {
|
|
3163
3397
|
body?: CliLogoutInput;
|
|
3164
3398
|
path?: never;
|
|
@@ -3612,6 +3846,27 @@ type ListEmailsData = {
|
|
|
3612
3846
|
* Filter emails created on or before this timestamp
|
|
3613
3847
|
*/
|
|
3614
3848
|
date_to?: string;
|
|
3849
|
+
/**
|
|
3850
|
+
* Forward-tail cursor. Returns rows that became visible AFTER this
|
|
3851
|
+
* cursor, oldest-first, so a caller can stream new inbound mail by
|
|
3852
|
+
* re-passing the cursor from each response. Mutually exclusive with
|
|
3853
|
+
* `cursor` (which pages history newest-first). Pass the `meta.cursor`
|
|
3854
|
+
* from the previous `since` response; an empty page means caught up.
|
|
3855
|
+
*
|
|
3856
|
+
*/
|
|
3857
|
+
since?: string;
|
|
3858
|
+
/**
|
|
3859
|
+
* Long-poll: hold the request up to this many seconds waiting for new
|
|
3860
|
+
* mail past `since`, returning as soon as any arrives (or an empty
|
|
3861
|
+
* page when the wait elapses). Requires `since`. Omitted means no wait
|
|
3862
|
+
* (returns immediately); the server treats an absent value as 0. NOT
|
|
3863
|
+
* given an OpenAPI `default` on purpose: a default makes some
|
|
3864
|
+
* generators (e.g. openapi-python-client) send `wait=0` on every call,
|
|
3865
|
+
* which then fails the `wait` requires `since` check for plain history
|
|
3866
|
+
* listings.
|
|
3867
|
+
*
|
|
3868
|
+
*/
|
|
3869
|
+
wait?: number;
|
|
3615
3870
|
};
|
|
3616
3871
|
url: '/emails';
|
|
3617
3872
|
};
|
|
@@ -5344,7 +5599,7 @@ type ListFunctionLogsResponses = {
|
|
|
5344
5599
|
};
|
|
5345
5600
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
5346
5601
|
declare namespace sdk_gen_d_exports {
|
|
5347
|
-
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, 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, 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 };
|
|
5602
|
+
export { Options, addDomain, cliLogout, createAgentAccount, createAgentClaimLink, createEndpoint, createFilter, createFunction, createFunctionSecret, 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, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
|
|
5348
5603
|
}
|
|
5349
5604
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
5350
5605
|
/**
|
|
@@ -5442,6 +5697,52 @@ declare const resendAgentSignupVerification: <ThrowOnError extends boolean = fal
|
|
|
5442
5697
|
*
|
|
5443
5698
|
*/
|
|
5444
5699
|
declare const verifyAgentSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyAgentSignupData, ThrowOnError>) => RequestResult<VerifyAgentSignupResponses, VerifyAgentSignupErrors, ThrowOnError, "fields">;
|
|
5700
|
+
/**
|
|
5701
|
+
* Create an emailless agent account
|
|
5702
|
+
*
|
|
5703
|
+
* Creates an emailless agent account without authentication and returns a
|
|
5704
|
+
* one-time API key (prefixed `prim_`) plus a provisioned managed inbox.
|
|
5705
|
+
* The account is on the `agent` plan: reply-only (it can send only to
|
|
5706
|
+
* addresses that have already sent it authenticated mail) with tight send
|
|
5707
|
+
* limits. Use the returned `api_key` as a Bearer token on later calls. The
|
|
5708
|
+
* account can be upgraded to a full developer account by confirming an
|
|
5709
|
+
* email through the claim flow. This endpoint does not require an API key.
|
|
5710
|
+
*
|
|
5711
|
+
*/
|
|
5712
|
+
declare const createAgentAccount: <ThrowOnError extends boolean = false>(options: Options<CreateAgentAccountData, ThrowOnError>) => RequestResult<CreateAgentAccountResponses, CreateAgentAccountErrors, ThrowOnError, "fields">;
|
|
5713
|
+
/**
|
|
5714
|
+
* Start an agent account email claim
|
|
5715
|
+
*
|
|
5716
|
+
* Begins upgrading an emailless `agent` account into a full `developer`
|
|
5717
|
+
* account by confirming an email address. Authenticated by the agent's own
|
|
5718
|
+
* API key (the org is taken from the credential). Sends a verification
|
|
5719
|
+
* code to the supplied email and returns the claim session id plus resend
|
|
5720
|
+
* timing. Submit the code to `/agent/claim/verify` to complete the
|
|
5721
|
+
* upgrade. Confirming an email that already belongs to a Primitive account
|
|
5722
|
+
* is rejected.
|
|
5723
|
+
*
|
|
5724
|
+
*/
|
|
5725
|
+
declare const startAgentClaim: <ThrowOnError extends boolean = false>(options: Options<StartAgentClaimData, ThrowOnError>) => RequestResult<StartAgentClaimResponses, StartAgentClaimErrors, ThrowOnError, "fields">;
|
|
5726
|
+
/**
|
|
5727
|
+
* Verify an agent account email claim
|
|
5728
|
+
*
|
|
5729
|
+
* Confirms the verification code emailed by `/agent/claim/start` and
|
|
5730
|
+
* upgrades the account to the `developer` plan. The org id, API key, and
|
|
5731
|
+
* managed inbox all carry over; the send cap lifts. Authenticated by the
|
|
5732
|
+
* agent's own API key.
|
|
5733
|
+
*
|
|
5734
|
+
*/
|
|
5735
|
+
declare const verifyAgentClaim: <ThrowOnError extends boolean = false>(options: Options<VerifyAgentClaimData, ThrowOnError>) => RequestResult<VerifyAgentClaimResponses, VerifyAgentClaimErrors, ThrowOnError, "fields">;
|
|
5736
|
+
/**
|
|
5737
|
+
* Create a browser claim link
|
|
5738
|
+
*
|
|
5739
|
+
* Mints an opaque, single-use link an agent can hand to a human to
|
|
5740
|
+
* complete the email-confirmation upgrade in a browser. Authenticated by
|
|
5741
|
+
* the agent's own API key. `claim_url` is null when the API host cannot
|
|
5742
|
+
* resolve a web origin to build the link.
|
|
5743
|
+
*
|
|
5744
|
+
*/
|
|
5745
|
+
declare const createAgentClaimLink: <ThrowOnError extends boolean = false>(options?: Options<CreateAgentClaimLinkData, ThrowOnError>) => RequestResult<CreateAgentClaimLinkResponses, CreateAgentClaimLinkErrors, ThrowOnError, "fields">;
|
|
5445
5746
|
/**
|
|
5446
5747
|
* Revoke the current CLI OAuth session
|
|
5447
5748
|
*
|
|
@@ -5979,10 +6280,12 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
5979
6280
|
* each delivery and forwards the `Primitive-Signature` header to
|
|
5980
6281
|
* the handler. Verify the raw request body with
|
|
5981
6282
|
* `PRIMITIVE_WEBHOOK_SECRET` before parsing JSON; after verification
|
|
5982
|
-
* the request body parses to
|
|
5983
|
-
* `
|
|
5984
|
-
*
|
|
5985
|
-
*
|
|
6283
|
+
* the request body parses to a webhook event whose `event` field is
|
|
6284
|
+
* `email.received` for normal inbound mail, or a machine-mail type
|
|
6285
|
+
* (`email.bounced`, `email.tls_report`, `email.dmarc_report`,
|
|
6286
|
+
* `email.dmarc_failure`) for bounces and reports. Code is bundled
|
|
6287
|
+
* before being uploaded; ship a single self-contained file rather
|
|
6288
|
+
* than relying on external imports.
|
|
5986
6289
|
*
|
|
5987
6290
|
* **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
|
|
5988
6291
|
* (optional) is capped at 5 MiB UTF-8, stored with each deployment
|
|
@@ -6393,6 +6696,12 @@ interface ForwardInput {
|
|
|
6393
6696
|
interface SendResult {
|
|
6394
6697
|
id: string;
|
|
6395
6698
|
status: SendMailResult["status"];
|
|
6699
|
+
/**
|
|
6700
|
+
* The bare from-address actually written on the wire. Load-bearing on the
|
|
6701
|
+
* server-derived reply path, where `from` is derived from the inbound rather
|
|
6702
|
+
* than anything the caller passed.
|
|
6703
|
+
*/
|
|
6704
|
+
from: string;
|
|
6396
6705
|
queueId: string | null;
|
|
6397
6706
|
accepted: string[];
|
|
6398
6707
|
rejected: string[];
|
|
@@ -6420,7 +6729,125 @@ interface SemanticSearchResponse {
|
|
|
6420
6729
|
meta: SemanticSearchMeta;
|
|
6421
6730
|
}
|
|
6422
6731
|
type PrimitiveClientOptions = PrimitiveApiClientOptions;
|
|
6732
|
+
/**
|
|
6733
|
+
* Agent-account operations, grouped under `client.agent`.
|
|
6734
|
+
*
|
|
6735
|
+
* These cover the emailless agent lifecycle: create a zero-touch account
|
|
6736
|
+
* (no auth required), then later upgrade it to a full developer account by
|
|
6737
|
+
* confirming an email (the claim flow, authenticated by the agent's own
|
|
6738
|
+
* API key). Field shapes are the generated request/response types, matching
|
|
6739
|
+
* the documented API surface.
|
|
6740
|
+
*/
|
|
6741
|
+
declare class AgentResource {
|
|
6742
|
+
private readonly client;
|
|
6743
|
+
constructor(client: PrimitiveApiClient["client"]);
|
|
6744
|
+
/**
|
|
6745
|
+
* Create an emailless agent account. Unauthenticated: call this on a
|
|
6746
|
+
* client constructed without an API key. Returns a one-time `api_key`
|
|
6747
|
+
* (prefixed `prim_`, shown once) plus a provisioned managed inbox. The
|
|
6748
|
+
* account is on the reply-only `agent` plan and can be upgraded later via
|
|
6749
|
+
* the claim flow.
|
|
6750
|
+
*/
|
|
6751
|
+
createAccount(input: CreateAgentAccountInput, options?: RequestOptions): Promise<AgentAccountResult>;
|
|
6752
|
+
/**
|
|
6753
|
+
* Start the email-claim upgrade for the authenticated agent account.
|
|
6754
|
+
* Sends a verification code to `email` and returns the claim session id
|
|
6755
|
+
* plus resend timing. Authenticated by the agent's own API key.
|
|
6756
|
+
*/
|
|
6757
|
+
claimStart(input: StartAgentClaimInput, options?: RequestOptions): Promise<AgentClaimStartResult>;
|
|
6758
|
+
/**
|
|
6759
|
+
* Confirm the claim verification code and upgrade the account to the
|
|
6760
|
+
* `developer` plan. The org id, API key, and managed inbox carry over;
|
|
6761
|
+
* the send cap lifts.
|
|
6762
|
+
*/
|
|
6763
|
+
claimVerify(input: VerifyAgentClaimInput, options?: RequestOptions): Promise<AgentClaimResult>;
|
|
6764
|
+
/**
|
|
6765
|
+
* Mint a browser claim link to hand to a human for the email-confirmation
|
|
6766
|
+
* upgrade. `claim_url` is null when the API host has no web origin to
|
|
6767
|
+
* build the link.
|
|
6768
|
+
*/
|
|
6769
|
+
claimLink(input?: CreateAgentClaimLinkInput, options?: RequestOptions): Promise<AgentClaimLinkResult>;
|
|
6770
|
+
}
|
|
6771
|
+
/**
|
|
6772
|
+
* One inbound email from the forward tail, plus the cursor positioned just
|
|
6773
|
+
* after it and a bound `reply()`. Persist `cursor` after processing to resume
|
|
6774
|
+
* the stream exactly where you left off; the stream advances one email at a
|
|
6775
|
+
* time, so the cursor is per-email exact.
|
|
6776
|
+
*/
|
|
6777
|
+
interface InboundEmail {
|
|
6778
|
+
id: string;
|
|
6779
|
+
messageId: string | null;
|
|
6780
|
+
/** SMTP envelope sender (return-path) of the inbound mail. */
|
|
6781
|
+
from: string;
|
|
6782
|
+
to: string;
|
|
6783
|
+
subject: string | null;
|
|
6784
|
+
status: EmailStatus;
|
|
6785
|
+
domain: string;
|
|
6786
|
+
spamScore: number | null;
|
|
6787
|
+
threadId: string | null;
|
|
6788
|
+
createdAt: string;
|
|
6789
|
+
receivedAt: string;
|
|
6790
|
+
/** Forward-tail cursor positioned just after this email (persist to resume). */
|
|
6791
|
+
cursor: string;
|
|
6792
|
+
/** Reply to this email. Reply-only agents may reply to senders that mailed them. */
|
|
6793
|
+
reply(input: ReplyInput, options?: RequestOptions): Promise<SendResult>;
|
|
6794
|
+
}
|
|
6795
|
+
interface InboxStreamOptions {
|
|
6796
|
+
/** Resume cursor. Omit to stream from the beginning (oldest-first) then tail. */
|
|
6797
|
+
since?: string;
|
|
6798
|
+
/** Per-request long-poll hold in seconds (1-30). Default 30. */
|
|
6799
|
+
waitSeconds?: number;
|
|
6800
|
+
/** Stop the stream when this fires. */
|
|
6801
|
+
signal?: AbortSignal;
|
|
6802
|
+
}
|
|
6803
|
+
interface WaitForNextOptions {
|
|
6804
|
+
since?: string;
|
|
6805
|
+
waitSeconds?: number;
|
|
6806
|
+
signal?: AbortSignal;
|
|
6807
|
+
}
|
|
6808
|
+
/**
|
|
6809
|
+
* Inbound mail, grouped under `client.inbox`. Wraps the GET /v1/emails forward
|
|
6810
|
+
* tail (`?since` + `?wait` long-poll) so an agent's receive loop is a single
|
|
6811
|
+
* `for await`, with the cursor advanced for you.
|
|
6812
|
+
*/
|
|
6813
|
+
declare class InboxResource {
|
|
6814
|
+
private readonly client;
|
|
6815
|
+
constructor(client: PrimitiveApiClient["client"]);
|
|
6816
|
+
/**
|
|
6817
|
+
* Stream inbound emails as they arrive. Long-polls the forward tail, yielding
|
|
6818
|
+
* one email at a time and advancing the cursor. Resumes from `since` (omit to
|
|
6819
|
+
* start oldest-first); stops when `signal` aborts.
|
|
6820
|
+
*
|
|
6821
|
+
* for await (const email of client.inbox.stream()) {
|
|
6822
|
+
* await email.reply("got it");
|
|
6823
|
+
* }
|
|
6824
|
+
*/
|
|
6825
|
+
stream(options?: InboxStreamOptions): AsyncGenerator<InboundEmail, void, void>;
|
|
6826
|
+
/**
|
|
6827
|
+
* Resolve with the next inbound email after `since`, or null if none arrives
|
|
6828
|
+
* within the wait window. One-shot form of `stream`; pass your current cursor
|
|
6829
|
+
* as `since` to wait for genuinely new mail.
|
|
6830
|
+
*/
|
|
6831
|
+
waitForNext(options?: WaitForNextOptions): Promise<InboundEmail | null>;
|
|
6832
|
+
}
|
|
6833
|
+
/** Account introspection, grouped under `client.account`. */
|
|
6834
|
+
declare class AccountResource {
|
|
6835
|
+
private readonly client;
|
|
6836
|
+
constructor(client: PrimitiveApiClient["client"]);
|
|
6837
|
+
/**
|
|
6838
|
+
* The authenticated account: plan, limits, granted `entitlements` (e.g. an
|
|
6839
|
+
* emailless agent sees only reply-only keys), and `managed_inbox_address`
|
|
6840
|
+
* (the From address to reply as).
|
|
6841
|
+
*/
|
|
6842
|
+
get(options?: RequestOptions): Promise<Account>;
|
|
6843
|
+
}
|
|
6423
6844
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
6845
|
+
/** Agent-account lifecycle operations (create, claim/upgrade). */
|
|
6846
|
+
readonly agent: AgentResource;
|
|
6847
|
+
/** Inbound mail: long-poll stream + waitForNext over the forward tail. */
|
|
6848
|
+
readonly inbox: InboxResource;
|
|
6849
|
+
/** Account introspection (plan, limits, entitlements, managed inbox). */
|
|
6850
|
+
readonly account: AccountResource;
|
|
6424
6851
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
6425
6852
|
/**
|
|
6426
6853
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
@@ -6453,5 +6880,26 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
6453
6880
|
}
|
|
6454
6881
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6455
6882
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6883
|
+
interface CreateAgentOptions extends CreateAgentAccountInput {
|
|
6884
|
+
/** Base URL + transport overrides for the returned client. */
|
|
6885
|
+
client?: PrimitiveClientOptions;
|
|
6886
|
+
}
|
|
6887
|
+
interface CreatedAgent {
|
|
6888
|
+
/** A PrimitiveClient already authenticated with the new agent's API key. */
|
|
6889
|
+
client: PrimitiveClient;
|
|
6890
|
+
/** The provisioned managed inbox FQDN (the address to receive + reply as). */
|
|
6891
|
+
address: string | null;
|
|
6892
|
+
/** The raw create-account result (api_key shown once, org_id, plan, limits). */
|
|
6893
|
+
account: AgentAccountResult;
|
|
6894
|
+
}
|
|
6895
|
+
/**
|
|
6896
|
+
* Zero-to-receiving in one call: create an emailless agent account (no auth)
|
|
6897
|
+
* and return a PrimitiveClient already wired with its one-time API key, plus
|
|
6898
|
+
* the provisioned managed inbox. From here `result.client.inbox.stream()` and
|
|
6899
|
+
* `result.client.send(...)` work immediately.
|
|
6900
|
+
*
|
|
6901
|
+
* const { client, address } = await createAgent({ terms_accepted: true });
|
|
6902
|
+
*/
|
|
6903
|
+
declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
|
|
6456
6904
|
//#endregion
|
|
6457
|
-
export { listDomains as $, ListEndpointsResponse as $a, UpdateDomainError as $c, GetOrgRoutingTopologyError as $i, DeleteFunctionError as $n, ResendAgentSignupVerificationErrors as $o, FunctionListItem as $r, SetFunctionRouteResponses as $s, CliLogoutResponses as $t, deleteEmail as A, InboxStatusEndpointSummary as Aa, TestEndpointResponses as Ac, GetEmailResponse as Ai, VerifyCliSignupError as Al, CreateFunctionSecretResponses as An, PollCliLoginError as Ao, DownloadRawEmailData as Ar, SemanticSearchScoreBreakdown as As, updateFunction as At, getConversation as B, ListDomainsData as Ba, UnsetFunctionRouteData as Bc, GetFunctionRoutingResponse as Bi, WebhookSecret as Bl, DeleteEmailResponse as Bn, ReplayEmailWebhooksData as Bo, EmailSearchFacetBucket as Br, SendPermissionAddress as Bs, AddDomainResponse as Bt, addDomain as C, GetWebhookSecretData as Ca, StartCliSignupResponses as Cc, GetConversationError as Ci, VerifyAgentSignupData as Cl, CreateFunctionResponses as Cn, ListSentEmailsError as Co, DownloadAttachmentsResponse as Cr, SemanticSearchError as Cs, testEndpoint as Ct, createFunction as D, GetWebhookSecretResponses as Da, TestEndpointError as Dc, GetEmailData as Di, VerifyAgentSignupResponse as Dl, CreateFunctionSecretErrors as Dn, PaginationMeta as Do, DownloadDomainZoneFileErrors as Dr, SemanticSearchMeta as Ds, updateDomain as Dt, createFilter as E, GetWebhookSecretResponse as Ea, TestEndpointData as Ec, GetConversationResponses as Ei, VerifyAgentSignupInput as El, CreateFunctionSecretError as En, ListSentEmailsResponses as Eo, DownloadDomainZoneFileError as Er, SemanticSearchInput as Es, updateAccount as Et, discardEmailContent as F, ListDeliveriesData as Fa, TestFunctionResponses as Fc, GetFunctionResponse as Fi, VerifyDomainData as Fl, DeleteDomainResponse as Fn, ReplayDeliveryData as Fo, EmailAddress as Fr, SendEmailResponse as Fs, AccountUpdated as Ft, getInboxStatus as G, ListEmailsData as Ga, UnverifiedDomain as Gc, GetFunctionTestRunTraceResponse as Gi, CreateClientConfig as Gl, DeleteEndpointResponse as Gn, ReplayResult as Go, EmailStatus as Gr, SendPermissionsMeta as Gs, AgentSignupVerifyResult as Gt, getFunction as H, ListDomainsErrors as Ha, UnsetFunctionRouteErrors as Hc, GetFunctionTestRunTraceData as Hi, Client as Hl, DeleteEndpointData as Hn, ReplayEmailWebhooksErrors as Ho, EmailSearchHighlights as Hr, SendPermissionManagedZone as Hs, AgentOrgRef as Ht, downloadAttachments as I, ListDeliveriesError as Ia, TestInvocationResult as Ic, GetFunctionResponses as Ii, VerifyDomainError as Il, DeleteDomainResponses as In, ReplayDeliveryError as Io, EmailAttachment as Ir, SendEmailResponses as Is, AddDomainData as It, getSentEmail as J, ListEmailsResponse as Ja, UpdateAccountErrors as Jc, GetInboxStatusError as Ji, RequestResult as Jl, DeleteFilterError as Jn, ReplyToEmailErrors as Jo, Endpoint as Jr, SentEmailSummary as Js, CliLogoutData as Jt, getOrgRoutingTopology as K, ListEmailsError as Ka, UpdateAccountData as Kc, GetFunctionTestRunTraceResponses as Ki, Options$1 as Kl, DeleteEndpointResponses as Kn, ReplyToEmailData as Ko, EmailSummary as Kr, SentEmailDetail as Ks, CliLoginPollResult as Kt, downloadDomainZoneFile as L, ListDeliveriesErrors as La, TestResult as Lc, GetFunctionRoutingData as Li, VerifyDomainErrors as Ll, DeleteEmailData as Ln, ReplayDeliveryErrors as Lo, EmailAuth as Lr, SendMailAttachment as Ls, AddDomainError as Lt, deleteFilter as M, InboxStatusNextAction as Ma, TestFunctionError as Mc, GetFunctionData as Mi, VerifyCliSignupInput as Ml, DeleteDomainData as Mn, PollCliLoginInput as Mo, DownloadRawEmailErrors as Mr, SendEmailData as Ms, verifyCliSignup as Mt, deleteFunction as N, InboxStatusRecentEmailSummary as Na, TestFunctionErrors as Nc, GetFunctionError as Ni, VerifyCliSignupResponse as Nl, DeleteDomainError as Nn, PollCliLoginResponse as No, DownloadRawEmailResponse as Nr, SendEmailError as Ns, verifyDomain as Nt, createFunctionSecret as O, InboxStatus as Oa, TestEndpointErrors as Oc, GetEmailError as Oi, VerifyAgentSignupResponses as Ol, CreateFunctionSecretInput as On, ParsedEmailData as Oo, DownloadDomainZoneFileResponse as Or, SemanticSearchResponses as Os, updateEndpoint as Ot, deleteFunctionSecret as P, Limit as Pa, TestFunctionResponse as Pc, GetFunctionErrors as Pi, VerifyCliSignupResponses as Pl, DeleteDomainErrors as Pn, PollCliLoginResponses as Po, DownloadRawEmailResponses as Pr, SendEmailErrors as Ps, Account as Pt, listDeliveries as Q, ListEndpointsErrors as Qa, UpdateDomainData as Qc, GetOrgRoutingTopologyData as Qi, DeleteFunctionData as Qn, ResendAgentSignupVerificationError as Qo, FunctionDetail as Qr, SetFunctionRouteResponse as Qs, CliLogoutResponse as Qt, downloadRawEmail as R, ListDeliveriesResponse as Ra, Thread as Rc, GetFunctionRoutingError as Ri, VerifyDomainResponse as Rl, DeleteEmailError as Rn, ReplayDeliveryResponse as Ro, EmailDetail as Rr, SendMailInput as Rs, AddDomainErrors as Rt, createPrimitiveApiClient as S, GetThreadResponses as Sa, StartCliSignupResponse as Sc, GetConversationData as Si, VerifiedDomain as Sl, CreateFunctionResponse as Sn, ListSentEmailsData as So, DownloadAttachmentsErrors as Sr, SemanticSearchData as Ss, startCliSignup as St, createEndpoint as T, GetWebhookSecretErrors as Ta, SuccessEnvelope as Tc, GetConversationResponse as Ti, VerifyAgentSignupErrors as Tl, CreateFunctionSecretData as Tn, ListSentEmailsResponse as To, DownloadDomainZoneFileData as Tr, SemanticSearchField as Ts, unsetFunctionRoute as Tt, getFunctionRouting as U, ListDomainsResponse as Ua, UnsetFunctionRouteResponse as Uc, GetFunctionTestRunTraceError as Ui, ClientOptions as Ul, DeleteEndpointError as Un, ReplayEmailWebhooksResponse as Uo, EmailSearchMeta as Ur, SendPermissionRule as Us, AgentSignupResendResult as Ut, getEmail as V, ListDomainsError as Va, UnsetFunctionRouteError as Vc, GetFunctionRoutingResponses as Vi, createClient as Vl, DeleteEmailResponses as Vn, ReplayEmailWebhooksError as Vo, EmailSearchFacets as Vr, SendPermissionAnyRecipient as Vs, AddDomainResponses as Vt, getFunctionTestRunTrace as W, ListDomainsResponses as Wa, UnsetFunctionRouteResponses as Wc, GetFunctionTestRunTraceErrors as Wi, Config as Wl, DeleteEndpointErrors as Wn, ReplayEmailWebhooksResponses as Wo, EmailSearchResult as Wr, SendPermissionYourDomain as Ws, AgentSignupStartResult as Wt, getThread as X, ListEndpointsData as Xa, UpdateAccountResponse as Xc, GetInboxStatusResponse as Xi, createConfig as Xl, DeleteFilterResponse as Xn, ReplyToEmailResponses as Xo, Filter as Xr, SetFunctionRouteError as Xs, CliLogoutErrors as Xt, getStorageStats as Y, ListEmailsResponses as Ya, UpdateAccountInput as Yc, GetInboxStatusErrors as Yi, ResponseStyle as Yl, DeleteFilterErrors as Yn, ReplyToEmailResponse as Yo, ErrorResponse as Yr, SetFunctionRouteData as Ys, CliLogoutError as Yt, getWebhookSecret as Z, ListEndpointsError as Za, UpdateAccountResponses as Zc, GetInboxStatusResponses as Zi, Auth as Zl, DeleteFilterResponses as Zn, ResendAgentSignupVerificationData as Zo, FunctionDeployStatus as Zr, SetFunctionRouteErrors as Zs, CliLogoutInput as Zt, PrimitiveApiClient as _, GetStorageStatsResponses as _a, StartCliLoginResponses as _c, GetAccountData as _i, UpdateFunctionError as _l, CreateFilterResponses as _n, ListFunctionsData as _o, Domain as _r, SearchEmailsError as _s, sendEmail as _t, RequestOptions as a, GetSendPermissionsErrors as aa, SetFunctionSecretResponses as ac, FunctionSecretWriteResult as ai, UpdateEndpointError as al, ConversationMessage as an, ListFiltersResponse as ao, DeleteFunctionSecretErrors as ar, ResendCliSignupVerificationErrors as as, listFunctions as at, PrimitiveApiErrorDetails as b, GetThreadErrors as ba, StartCliSignupErrors as bc, GetAccountResponse as bi, UpdateFunctionResponse as bl, CreateFunctionErrors as bn, ListFunctionsResponse as bo, DownloadAttachmentsData as br, SearchEmailsResponses as bs, startAgentSignup as bt, SendInput as c, GetSentEmailData as ca, StartAgentSignupErrors as cc, FunctionTestRunDeliveryEndpoint as ci, UpdateEndpointResponse as cl, CreateEndpointErrors as cn, ListFunctionLogsError as co, DeliveryStatus as cr, ResendCliSignupVerificationResponses as cs, replayDelivery as ct, client as d, GetSentEmailResponse as da, StartAgentSignupResponses as dc, FunctionTestRunReply as di, UpdateFilterError as dl, CreateEndpointResponses as dn, ListFunctionLogsResponses as do, DiscardEmailContentData as dr, RotateWebhookSecretError as ds, resendAgentSignupVerification as dt, GetOrgRoutingTopologyErrors as ea, SetFunctionSecretData as ec, FunctionLogRow as ei, UpdateDomainErrors as el, CliLogoutResult as en, ListEndpointsResponses as eo, DeleteFunctionErrors as er, ResendAgentSignupVerificationInput as es, listEmails as et, createPrimitiveClient as f, GetSentEmailResponses as fa, StartCliLoginData as fc, FunctionTestRunSend as fi, UpdateFilterErrors as fl, CreateFilterData as fn, ListFunctionSecretsData as fo, DiscardEmailContentError as fr, RotateWebhookSecretErrors as fs, resendCliSignupVerification as ft, DEFAULT_API_BASE_URL as g, GetStorageStatsResponse as ga, StartCliLoginResponse as gc, GateFix as gi, UpdateFunctionData as gl, CreateFilterResponse as gn, ListFunctionSecretsResponses as go, DkimSignature as gr, SearchEmailsData as gs, semanticSearch as gt, verifyWebhookSignature as h, GetStorageStatsErrors as ha, StartCliLoginInput as hc, GateDenial as hi, UpdateFilterResponses as hl, CreateFilterInput as hn, ListFunctionSecretsResponse as ho, DiscardEmailContentResponses as hr, RoutingTopology as hs, searchEmails as ht, ReplyInput as i, GetSendPermissionsError as ia, SetFunctionSecretResponse as ic, FunctionSecretListItem as ii, UpdateEndpointData as il, Conversation as in, ListFiltersErrors as io, DeleteFunctionSecretError as ir, ResendCliSignupVerificationError as is, listFunctionSecrets as it, deleteEndpoint as j, InboxStatusFunctionSummary as ja, TestFunctionData as jc, GetEmailResponses as ji, VerifyCliSignupErrors as jl, Cursor as jn, PollCliLoginErrors as jo, DownloadRawEmailError as jr, SemanticSearchSnippet as js, verifyAgentSignup as jt, deleteDomain as k, InboxStatusDomain as ka, TestEndpointResponse as kc, GetEmailErrors as ki, VerifyCliSignupData as kl, CreateFunctionSecretResponse as kn, PollCliLoginData as ko, DownloadDomainZoneFileResponses as kr, SemanticSearchResult as ks, updateFilter as kt, SendResult as l, GetSentEmailError as la, StartAgentSignupInput as lc, FunctionTestRunInboundEmail as li, UpdateEndpointResponses as ll, CreateEndpointInput as ln, ListFunctionLogsErrors as lo, DeliverySummary as lr, ResourceId as ls, replayEmailWebhooks as lt, VerifyOptions as m, GetStorageStatsError as ma, StartCliLoginErrors as mc, FunctionTestRunTrace as mi, UpdateFilterResponse as ml, CreateFilterErrors as mn, ListFunctionSecretsErrors as mo, DiscardEmailContentResponse as mr, RotateWebhookSecretResponses as ms, sdk_gen_d_exports as mt, PrimitiveClient as n, GetOrgRoutingTopologyResponses as na, SetFunctionSecretErrors as nc, FunctionRouteResult as ni, UpdateDomainResponse as nl, CliSignupStartResult as nn, ListFiltersData as no, DeleteFunctionResponses as nr, ResendAgentSignupVerificationResponses as ns, listFilters as nt, SemanticSearchResponse as o, GetSendPermissionsResponse as oa, StartAgentSignupData as oc, FunctionTestRun as oi, UpdateEndpointErrors as ol, CreateEndpointData as on, ListFiltersResponses as oo, DeleteFunctionSecretResponse as or, ResendCliSignupVerificationInput as os, listSentEmails as ot, PRIMITIVE_SIGNATURE_HEADER as p, GetStorageStatsData as pa, StartCliLoginError as pc, FunctionTestRunState as pi, UpdateFilterInput as pl, CreateFilterError as pn, ListFunctionSecretsError as po, DiscardEmailContentErrors as pr, RotateWebhookSecretResponse as ps, rotateWebhookSecret as pt, getSendPermissions as q, ListEmailsErrors as qa, UpdateAccountError as qc, GetInboxStatusData as qi, RequestOptions$2 as ql, DeleteFilterData as qn, ReplyToEmailError as qo, EmailWebhookStatus as qr, SentEmailStatus as qs, CliLoginStartResult as qt, PrimitiveClientOptions as r, GetSendPermissionsData as ra, SetFunctionSecretInput as rc, FunctionRouting as ri, UpdateDomainResponses as rl, CliSignupVerifyResult as rn, ListFiltersError as ro, DeleteFunctionSecretData as rr, ResendCliSignupVerificationData as rs, listFunctionLogs as rt, SendAttachment as s, GetSendPermissionsResponses as sa, StartAgentSignupError as sc, FunctionTestRunDelivery as si, UpdateEndpointInput as sl, CreateEndpointError as sn, ListFunctionLogsData as so, DeleteFunctionSecretResponses as sr, ResendCliSignupVerificationResponse as ss, pollCliLogin as st, ForwardInput as t, GetOrgRoutingTopologyResponse as ta, SetFunctionSecretError as tc, FunctionRouteBody as ti, UpdateDomainInput as tl, CliSignupResendResult as tn, ListEnvelope as to, DeleteFunctionResponse as tr, ResendAgentSignupVerificationResponse as ts, listEndpoints as tt, SendThreadInput as u, GetSentEmailErrors as ua, StartAgentSignupResponse as uc, FunctionTestRunOutboundRequest as ui, UpdateFilterData as ul, CreateEndpointResponse as un, ListFunctionLogsResponse as uo, DiscardContentResult as ur, RotateWebhookSecretData as us, replyToEmail as ut, PrimitiveApiClientOptions as v, GetThreadData as va, StartCliSignupData as vc, GetAccountError as vi, UpdateFunctionErrors as vl, CreateFunctionData as vn, ListFunctionsError as vo, DomainDnsRecord as vr, SearchEmailsErrors as vs, setFunctionRoute as vt, cliLogout as w, GetWebhookSecretError as wa, StorageStats as wc, GetConversationErrors as wi, VerifyAgentSignupError as wl, CreateFunctionResult as wn, ListSentEmailsErrors as wo, DownloadAttachmentsResponses as wr, SemanticSearchErrors as ws, testFunction as wt, RequestOptions$1 as x, GetThreadResponse as xa, StartCliSignupInput as xc, GetAccountResponses as xi, UpdateFunctionResponses as xl, CreateFunctionInput as xn, ListFunctionsResponses as xo, DownloadAttachmentsError as xr, SemanticSearchCoverage as xs, startCliLogin as xt, PrimitiveApiError as y, GetThreadError as ya, StartCliSignupError as yc, GetAccountErrors as yi, UpdateFunctionInput as yl, CreateFunctionError as yn, ListFunctionsErrors as yo, DomainVerifyResult as yr, SearchEmailsResponse as ys, setFunctionSecret as yt, getAccount as z, ListDeliveriesResponses as za, ThreadMessage as zc, GetFunctionRoutingErrors as zi, VerifyDomainResponses as zl, DeleteEmailErrors as zn, ReplayDeliveryResponses as zo, EmailDetailReply as zr, SendMailResult as zs, AddDomainInput as zt };
|
|
6905
|
+
export { getFunction as $, GetWebhookSecretData as $a, StartCliLoginResponse as $c, GetConversationError as $i, UpdateFunctionData as $l, CreateFunctionResponses as $n, ListSentEmailsError as $o, DownloadAttachmentsResponse as $r, SemanticSearchData as $s, AddDomainResponse as $t, RequestOptions$1 as A, GetOrgRoutingTopologyErrors as Aa, SetFunctionRouteResponses as Ac, FunctionLogRow as Ai, UpdateAccountError as Al, CreateAgentClaimLinkData as An, ListEndpointsResponses as Ao, DeleteFunctionErrors as Ar, ResendAgentSignupVerificationErrors as As, setFunctionSecret as At, createClient as Au, deleteDomain as B, GetSentEmailErrors as Ba, StartAgentClaimInput as Bc, FunctionTestRunOutboundRequest as Bi, UpdateDomainResponses as Bl, CreateEndpointResponse as Bn, ListFunctionLogsResponse as Bo, DiscardContentResult as Br, ResourceId as Bs, updateEndpoint as Bt, Auth as Bu, VerifyOptions as C, GetInboxStatusData as Ca, SentEmailDetail as Cc, EmailWebhookStatus as Ci, UnsetFunctionRouteData as Cl, ConversationMessage as Cn, ListEmailsErrors as Co, DeleteFilterData as Cr, ReplyToEmailData as Cs, resendCliSignupVerification as Ct, VerifyCliSignupResponses as Cu, PrimitiveApiClientOptions as D, GetInboxStatusResponses as Da, SetFunctionRouteError as Dc, FunctionDeployStatus as Di, UnsetFunctionRouteResponses as Dl, CreateAgentAccountInput as Dn, ListEndpointsError as Do, DeleteFilterResponses as Dr, ReplyToEmailResponses as Ds, semanticSearch as Dt, VerifyDomainResponse as Du, PrimitiveApiClient as E, GetInboxStatusResponse as Ea, SetFunctionRouteData as Ec, Filter as Ei, UnsetFunctionRouteResponse as El, CreateAgentAccountErrors as En, ListEndpointsData as Eo, DeleteFilterResponse as Er, ReplyToEmailResponse as Es, searchEmails as Et, VerifyDomainErrors as Eu, createAgentClaimLink as F, GetSendPermissionsErrors as Fa, SetFunctionSecretResponse as Fc, FunctionSecretWriteResult as Fi, UpdateDomainData as Fl, CreateAgentClaimLinkResponses as Fn, ListFiltersResponse as Fo, DeleteFunctionSecretErrors as Fr, ResendCliSignupVerificationError as Fs, testEndpoint as Ft, Options$1 as Fu, deleteFunctionSecret as G, GetStorageStatsErrors as Ga, StartAgentSignupErrors as Gc, GateDenial as Gi, UpdateEndpointResponse as Gl, CreateFilterInput as Gn, ListFunctionSecretsResponse as Go, DiscardEmailContentResponses as Gr, RotateWebhookSecretResponses as Gs, verifyCliSignup as Gt, deleteEndpoint as H, GetSentEmailResponses as Ha, StartAgentClaimResponses as Hc, FunctionTestRunSend as Hi, UpdateEndpointError as Hl, CreateFilterData as Hn, ListFunctionSecretsData as Ho, DiscardEmailContentError as Hr, RotateWebhookSecretError as Hs, updateFunction as Ht, createEndpoint as I, GetSendPermissionsResponse as Ia, SetFunctionSecretResponses as Ic, FunctionTestRun as Ii, UpdateDomainError as Il, CreateEndpointData as In, ListFiltersResponses as Io, DeleteFunctionSecretResponse as Ir, ResendCliSignupVerificationErrors as Is, testFunction as It, RequestOptions$2 as Iu, downloadDomainZoneFile as J, GetThreadData as Ja, StartAgentSignupResponses as Jc, GetAccountError as Ji, UpdateFilterError as Jl, CreateFunctionData as Jn, ListFunctionsError as Jo, DomainDnsRecord as Jr, SearchEmailsError as Js, AccountUpdated as Jt, discardEmailContent as K, GetStorageStatsResponse as Ka, StartAgentSignupInput as Kc, GateFix as Ki, UpdateEndpointResponses as Kl, CreateFilterResponse as Kn, ListFunctionSecretsResponses as Ko, DkimSignature as Kr, RoutingTopology as Ks, verifyDomain as Kt, createFilter as L, GetSendPermissionsResponses as La, StartAgentClaimData as Lc, FunctionTestRunDelivery as Li, UpdateDomainErrors as Ll, CreateEndpointError as Ln, ListFunctionLogsData as Lo, DeleteFunctionSecretResponses as Lr, ResendCliSignupVerificationInput as Ls, unsetFunctionRoute as Lt, RequestResult as Lu, addDomain as M, GetOrgRoutingTopologyResponses as Ma, SetFunctionSecretError as Mc, FunctionRouteResult as Mi, UpdateAccountInput as Ml, CreateAgentClaimLinkErrors as Mn, ListFiltersData as Mo, DeleteFunctionResponses as Mr, ResendAgentSignupVerificationResponse as Ms, startAgentSignup as Mt, ClientOptions as Mu, cliLogout as N, GetSendPermissionsData as Na, SetFunctionSecretErrors as Nc, FunctionRouting as Ni, UpdateAccountResponse as Nl, CreateAgentClaimLinkInput as Nn, ListFiltersError as No, DeleteFunctionSecretData as Nr, ResendAgentSignupVerificationResponses as Ns, startCliLogin as Nt, Config as Nu, PrimitiveApiError as O, GetOrgRoutingTopologyData as Oa, SetFunctionRouteErrors as Oc, FunctionDetail as Oi, UnverifiedDomain as Ol, CreateAgentAccountResponse as On, ListEndpointsErrors as Oo, DeleteFunctionData as Or, ResendAgentSignupVerificationData as Os, sendEmail as Ot, VerifyDomainResponses as Ou, createAgentAccount as P, GetSendPermissionsError as Pa, SetFunctionSecretInput as Pc, FunctionSecretListItem as Pi, UpdateAccountResponses as Pl, CreateAgentClaimLinkResponse as Pn, ListFiltersErrors as Po, DeleteFunctionSecretError as Pr, ResendCliSignupVerificationData as Ps, startCliSignup as Pt, CreateClientConfig as Pu, getEmail as Q, GetThreadResponses as Qa, StartCliLoginInput as Qc, GetConversationData as Qi, UpdateFilterResponses as Ql, CreateFunctionResponse as Qn, ListSentEmailsData as Qo, DownloadAttachmentsErrors as Qr, SemanticSearchCoverage as Qs, AddDomainInput as Qt, createFunction as R, GetSentEmailData as Ra, StartAgentClaimError as Rc, FunctionTestRunDeliveryEndpoint as Ri, UpdateDomainInput as Rl, CreateEndpointErrors as Rn, ListFunctionLogsError as Ro, DeliveryStatus as Rr, ResendCliSignupVerificationResponse as Rs, updateAccount as Rt, ResponseStyle as Ru, PRIMITIVE_SIGNATURE_HEADER as S, GetFunctionTestRunTraceResponses as Sa, SendPermissionsMeta as Sc, EmailSummary as Si, ThreadMessage as Sl, Conversation as Sn, ListEmailsError as So, DeleteEndpointResponses as Sr, ReplayResult as Ss, resendAgentSignupVerification as St, VerifyCliSignupResponse as Su, DEFAULT_API_BASE_URL as T, GetInboxStatusErrors as Ta, SentEmailSummary as Tc, ErrorResponse as Ti, UnsetFunctionRouteErrors as Tl, CreateAgentAccountError as Tn, ListEmailsResponses as To, DeleteFilterErrors as Tr, ReplyToEmailErrors as Ts, sdk_gen_d_exports as Tt, VerifyDomainError as Tu, deleteFilter as U, GetStorageStatsData as Ua, StartAgentSignupData as Uc, FunctionTestRunState as Ui, UpdateEndpointErrors as Ul, CreateFilterError as Un, ListFunctionSecretsError as Uo, DiscardEmailContentErrors as Ur, RotateWebhookSecretErrors as Us, verifyAgentClaim as Ut, deleteEmail as V, GetSentEmailResponse as Va, StartAgentClaimResponse as Vc, FunctionTestRunReply as Vi, UpdateEndpointData as Vl, CreateEndpointResponses as Vn, ListFunctionLogsResponses as Vo, DiscardEmailContentData as Vr, RotateWebhookSecretData as Vs, updateFilter as Vt, deleteFunction as W, GetStorageStatsError as Wa, StartAgentSignupError as Wc, FunctionTestRunTrace as Wi, UpdateEndpointInput as Wl, CreateFilterErrors as Wn, ListFunctionSecretsErrors as Wo, DiscardEmailContentResponse as Wr, RotateWebhookSecretResponse as Ws, verifyAgentSignup as Wt, getAccount as X, GetThreadErrors as Xa, StartCliLoginError as Xc, GetAccountResponse as Xi, UpdateFilterInput as Xl, CreateFunctionErrors as Xn, ListFunctionsResponse as Xo, DownloadAttachmentsData as Xr, SearchEmailsResponse as Xs, AddDomainError as Xt, downloadRawEmail as Y, GetThreadError as Ya, StartCliLoginData as Yc, GetAccountErrors as Yi, UpdateFilterErrors as Yl, CreateFunctionError as Yn, ListFunctionsErrors as Yo, DomainVerifyResult as Yr, SearchEmailsErrors as Ys, AddDomainData as Yt, getConversation as Z, GetThreadResponse as Za, StartCliLoginErrors as Zc, GetAccountResponses as Zi, UpdateFilterResponse as Zl, CreateFunctionInput as Zn, ListFunctionsResponses as Zo, DownloadAttachmentsError as Zr, SearchEmailsResponses as Zs, AddDomainErrors as Zt, SendThreadInput as _, GetFunctionRoutingResponses as _a, SendPermissionAddress as _c, EmailSearchFacets as _i, TestFunctionResponse as _l, CliLogoutResponses as _n, ListDomainsError as _o, DeleteEmailResponses as _r, ReplayEmailWebhooksData as _s, listSentEmails as _t, VerifyAgentSignupResponses as _u, ForwardInput as a, GetEmailErrors as aa, SemanticSearchResponses as ac, DownloadDomainZoneFileResponses as ai, StartCliSignupResponse as al, AgentClaimStartResult as an, InboxStatusDomain as ao, CreateFunctionSecretResponse as ar, PlanLimits as as, getSentEmail as at, VerifiedDomain as au, createAgent as b, GetFunctionTestRunTraceErrors as ba, SendPermissionRule as bc, EmailSearchResult as bi, TestResult as bl, CliSignupStartResult as bn, ListDomainsResponses as bo, DeleteEndpointErrors as br, ReplayEmailWebhooksResponse as bs, replayEmailWebhooks as bt, VerifyCliSignupErrors as bu, InboxStreamOptions as c, GetFunctionData as ca, SemanticSearchSnippet as cc, DownloadRawEmailErrors as ci, SuccessEnvelope as cl, AgentSignupStartResult as cn, InboxStatusNextAction as co, DeleteDomainData as cr, PollCliLoginErrors as cs, getWebhookSecret as ct, VerifyAgentClaimErrors as cu, ReplyInput as d, GetFunctionResponse as da, SendEmailErrors as dc, EmailAddress as di, TestEndpointErrors as dl, CliLoginStartResult as dn, ListDeliveriesData as do, DeleteDomainResponse as dr, PollCliLoginResponses as ds, listEmails as dt, VerifyAgentClaimResponses as du, GetConversationErrors as ea, SemanticSearchError as ec, DownloadAttachmentsResponses as ei, StartCliLoginResponses as el, AddDomainResponses as en, GetWebhookSecretError as eo, CreateFunctionResult as er, ListSentEmailsErrors as es, getFunctionRouting as et, UpdateFunctionError as eu, RequestOptions as f, GetFunctionResponses as fa, SendEmailResponse as fc, EmailAttachment as fi, TestEndpointResponse as fl, CliLogoutData as fn, ListDeliveriesError as fo, DeleteDomainResponses as fr, ReplayDeliveryData as fs, listEndpoints as ft, VerifyAgentSignupData as fu, SendResult as g, GetFunctionRoutingResponse as ga, SendMailResult as gc, EmailSearchFacetBucket as gi, TestFunctionErrors as gl, CliLogoutResponse as gn, ListDomainsData as go, DeleteEmailResponse as gr, ReplayDeliveryResponses as gs, listFunctions as gt, VerifyAgentSignupResponse as gu, SendInput as h, GetFunctionRoutingErrors as ha, SendMailInput as hc, EmailDetailReply as hi, TestFunctionError as hl, CliLogoutInput as hn, ListDeliveriesResponses as ho, DeleteEmailErrors as hr, ReplayDeliveryResponse as hs, listFunctionSecrets as ht, VerifyAgentSignupInput as hu, CreatedAgent as i, GetEmailError as ia, SemanticSearchMeta as ic, DownloadDomainZoneFileResponse as ii, StartCliSignupInput as il, AgentClaimResult as in, InboxStatus as io, CreateFunctionSecretInput as ir, ParsedEmailData as is, getSendPermissions as it, UpdateFunctionResponses as iu, createPrimitiveApiClient as j, GetOrgRoutingTopologyResponse as ja, SetFunctionSecretData as jc, FunctionRouteBody as ji, UpdateAccountErrors as jl, CreateAgentClaimLinkError as jn, ListEnvelope as jo, DeleteFunctionResponse as jr, ResendAgentSignupVerificationInput as js, startAgentClaim as jt, Client as ju, PrimitiveApiErrorDetails as k, GetOrgRoutingTopologyError as ka, SetFunctionRouteResponse as kc, FunctionListItem as ki, UpdateAccountData as kl, CreateAgentAccountResponses as kn, ListEndpointsResponse as ko, DeleteFunctionError as kr, ResendAgentSignupVerificationError as ks, setFunctionRoute as kt, WebhookSecret as ku, PrimitiveClient as l, GetFunctionError as la, SendEmailData as lc, DownloadRawEmailResponse as li, TestEndpointData as ll, AgentSignupVerifyResult as ln, InboxStatusRecentEmailSummary as lo, DeleteDomainError as lr, PollCliLoginInput as ls, listDeliveries as lt, VerifyAgentClaimInput as lu, SendAttachment as m, GetFunctionRoutingError as ma, SendMailAttachment as mc, EmailDetail as mi, TestFunctionData as ml, CliLogoutErrors as mn, ListDeliveriesResponse as mo, DeleteEmailError as mr, ReplayDeliveryErrors as ms, listFunctionLogs as mt, VerifyAgentSignupErrors as mu, AgentResource as n, GetConversationResponses as na, SemanticSearchField as nc, DownloadDomainZoneFileError as ni, StartCliSignupError as nl, AgentAccountUpgradeHint as nn, GetWebhookSecretResponse as no, CreateFunctionSecretError as nr, ListSentEmailsResponses as ns, getInboxStatus as nt, UpdateFunctionInput as nu, InboundEmail as o, GetEmailResponse as oa, SemanticSearchResult as oc, DownloadRawEmailData as oi, StartCliSignupResponses as ol, AgentOrgRef as on, InboxStatusEndpointSummary as oo, CreateFunctionSecretResponses as or, PollCliLoginData as os, getStorageStats as ot, VerifyAgentClaimData as ou, SemanticSearchResponse as p, GetFunctionRoutingData as pa, SendEmailResponses as pc, EmailAuth as pi, TestEndpointResponses as pl, CliLogoutError as pn, ListDeliveriesErrors as po, DeleteEmailData as pr, ReplayDeliveryError as ps, listFilters as pt, VerifyAgentSignupError as pu, downloadAttachments as q, GetStorageStatsResponses as qa, StartAgentSignupResponse as qc, GetAccountData as qi, UpdateFilterData as ql, CreateFilterResponses as qn, ListFunctionsData as qo, Domain as qr, SearchEmailsData as qs, Account as qt, CreateAgentOptions as r, GetEmailData as ra, SemanticSearchInput as rc, DownloadDomainZoneFileErrors as ri, StartCliSignupErrors as rl, AgentClaimLinkResult as rn, GetWebhookSecretResponses as ro, CreateFunctionSecretErrors as rr, PaginationMeta as rs, getOrgRoutingTopology as rt, UpdateFunctionResponse as ru, InboxResource as s, GetEmailResponses as sa, SemanticSearchScoreBreakdown as sc, DownloadRawEmailError as si, StorageStats as sl, AgentSignupResendResult as sn, InboxStatusFunctionSummary as so, Cursor as sr, PollCliLoginError as ss, getThread as st, VerifyAgentClaimError as su, AccountResource as t, GetConversationResponse as ta, SemanticSearchErrors as tc, DownloadDomainZoneFileData as ti, StartCliSignupData as tl, AgentAccountResult as tn, GetWebhookSecretErrors as to, CreateFunctionSecretData as tr, ListSentEmailsResponse as ts, getFunctionTestRunTrace as tt, UpdateFunctionErrors as tu, PrimitiveClientOptions as u, GetFunctionErrors as ua, SendEmailError as uc, DownloadRawEmailResponses as ui, TestEndpointError as ul, CliLoginPollResult as un, Limit as uo, DeleteDomainErrors as ur, PollCliLoginResponse as us, listDomains as ut, VerifyAgentClaimResponse as uu, WaitForNextOptions as v, GetFunctionTestRunTraceData as va, SendPermissionAnyRecipient as vc, EmailSearchHighlights as vi, TestFunctionResponses as vl, CliLogoutResult as vn, ListDomainsErrors as vo, DeleteEndpointData as vr, ReplayEmailWebhooksError as vs, pollCliLogin as vt, VerifyCliSignupData as vu, verifyWebhookSignature as w, GetInboxStatusError as wa, SentEmailStatus as wc, Endpoint as wi, UnsetFunctionRouteError as wl, CreateAgentAccountData as wn, ListEmailsResponse as wo, DeleteFilterError as wr, ReplyToEmailError as ws, rotateWebhookSecret as wt, VerifyDomainData as wu, createPrimitiveClient as x, GetFunctionTestRunTraceResponse as xa, SendPermissionYourDomain as xc, EmailStatus as xi, Thread as xl, CliSignupVerifyResult as xn, ListEmailsData as xo, DeleteEndpointResponse as xr, ReplayEmailWebhooksResponses as xs, replyToEmail as xt, VerifyCliSignupInput as xu, client as y, GetFunctionTestRunTraceError as ya, SendPermissionManagedZone as yc, EmailSearchMeta as yi, TestInvocationResult as yl, CliSignupResendResult as yn, ListDomainsResponse as yo, DeleteEndpointError as yr, ReplayEmailWebhooksErrors as ys, replayDelivery as yt, VerifyCliSignupError as yu, createFunctionSecret as z, GetSentEmailError as za, StartAgentClaimErrors as zc, FunctionTestRunInboundEmail as zi, UpdateDomainResponse as zl, CreateEndpointInput as zn, ListFunctionLogsErrors as zo, DeliverySummary as zr, ResendCliSignupVerificationResponses as zs, updateDomain as zt, createConfig as zu };
|