@primitivedotdev/sdk 0.31.0 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-CMPC1ByD.js → api-C7hBq-Wd.js} +81 -26
- package/dist/{index-Cbsl8j7G.d.ts → index-C17n15Eq.d.ts} +313 -47
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-DsbeO3l-.js → operations.generated-CDIos4wH.js} +769 -94
- package/package.json +1 -1
|
@@ -348,7 +348,7 @@ type PaginationMeta = {
|
|
|
348
348
|
type ErrorResponse = {
|
|
349
349
|
success: boolean;
|
|
350
350
|
error: {
|
|
351
|
-
code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code';
|
|
351
|
+
code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible';
|
|
352
352
|
message: string;
|
|
353
353
|
/**
|
|
354
354
|
* Optional structured data that callers can inspect to recover
|
|
@@ -474,11 +474,33 @@ type PollCliLoginInput = {
|
|
|
474
474
|
};
|
|
475
475
|
type CliLoginPollResult = {
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Legacy alias for access_token. New CLI builds should persist access_token and refresh_token.
|
|
478
478
|
*/
|
|
479
479
|
api_key: string;
|
|
480
|
+
/**
|
|
481
|
+
* Legacy alias for oauth_grant_id
|
|
482
|
+
*/
|
|
480
483
|
key_id: string;
|
|
484
|
+
/**
|
|
485
|
+
* Legacy display prefix derived from access_token
|
|
486
|
+
*/
|
|
481
487
|
key_prefix: string;
|
|
488
|
+
/**
|
|
489
|
+
* OAuth access token for CLI API authentication
|
|
490
|
+
*/
|
|
491
|
+
access_token: string;
|
|
492
|
+
/**
|
|
493
|
+
* OAuth refresh token used by the CLI to renew access
|
|
494
|
+
*/
|
|
495
|
+
refresh_token: string;
|
|
496
|
+
token_type: 'Bearer';
|
|
497
|
+
/**
|
|
498
|
+
* Seconds until access_token expires
|
|
499
|
+
*/
|
|
500
|
+
expires_in: number;
|
|
501
|
+
auth_method: 'oauth';
|
|
502
|
+
oauth_grant_id: string;
|
|
503
|
+
oauth_client_id: string;
|
|
482
504
|
org_id: string;
|
|
483
505
|
org_name: string | null;
|
|
484
506
|
};
|
|
@@ -490,7 +512,7 @@ type StartCliSignupInput = {
|
|
|
490
512
|
*/
|
|
491
513
|
terms_accepted: boolean;
|
|
492
514
|
/**
|
|
493
|
-
* Human-readable device name used for the created CLI
|
|
515
|
+
* Human-readable device name used for the created CLI OAuth grant
|
|
494
516
|
*/
|
|
495
517
|
device_name?: string;
|
|
496
518
|
/**
|
|
@@ -540,27 +562,162 @@ type CliSignupResendResult = {
|
|
|
540
562
|
type VerifyCliSignupInput = {
|
|
541
563
|
signup_token: string;
|
|
542
564
|
verification_code: string;
|
|
543
|
-
password
|
|
565
|
+
password?: string;
|
|
544
566
|
};
|
|
545
567
|
type CliSignupVerifyResult = {
|
|
546
568
|
/**
|
|
547
|
-
*
|
|
569
|
+
* Legacy alias for access_token. New CLI builds should persist access_token and refresh_token.
|
|
570
|
+
*/
|
|
571
|
+
api_key: string;
|
|
572
|
+
/**
|
|
573
|
+
* Legacy alias for oauth_grant_id
|
|
574
|
+
*/
|
|
575
|
+
key_id: string;
|
|
576
|
+
/**
|
|
577
|
+
* Legacy display prefix derived from access_token
|
|
578
|
+
*/
|
|
579
|
+
key_prefix: string;
|
|
580
|
+
/**
|
|
581
|
+
* OAuth access token for CLI API authentication
|
|
582
|
+
*/
|
|
583
|
+
access_token: string;
|
|
584
|
+
/**
|
|
585
|
+
* OAuth refresh token used by the CLI to renew access
|
|
586
|
+
*/
|
|
587
|
+
refresh_token: string;
|
|
588
|
+
token_type: 'Bearer';
|
|
589
|
+
/**
|
|
590
|
+
* Seconds until access_token expires
|
|
591
|
+
*/
|
|
592
|
+
expires_in: number;
|
|
593
|
+
auth_method: 'oauth';
|
|
594
|
+
oauth_grant_id: string;
|
|
595
|
+
oauth_client_id: string;
|
|
596
|
+
org_id: string;
|
|
597
|
+
org_name: string | null;
|
|
598
|
+
};
|
|
599
|
+
type StartAgentSignupInput = {
|
|
600
|
+
email: string;
|
|
601
|
+
signup_code: string;
|
|
602
|
+
/**
|
|
603
|
+
* Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
|
|
604
|
+
*/
|
|
605
|
+
terms_accepted: boolean;
|
|
606
|
+
/**
|
|
607
|
+
* Human-readable device name used for the created agent OAuth session
|
|
608
|
+
*/
|
|
609
|
+
device_name?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer
|
|
612
|
+
*/
|
|
613
|
+
metadata?: {
|
|
614
|
+
[key: string]: unknown;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
type AgentSignupStartResult = {
|
|
618
|
+
/**
|
|
619
|
+
* Opaque token used to verify or resend the pending agent signup
|
|
620
|
+
*/
|
|
621
|
+
signup_token: string;
|
|
622
|
+
email: string;
|
|
623
|
+
/**
|
|
624
|
+
* Seconds until the pending signup expires
|
|
625
|
+
*/
|
|
626
|
+
expires_in: number;
|
|
627
|
+
/**
|
|
628
|
+
* Minimum seconds before requesting another verification email
|
|
629
|
+
*/
|
|
630
|
+
resend_after: number;
|
|
631
|
+
/**
|
|
632
|
+
* Number of digits in the emailed verification code
|
|
633
|
+
*/
|
|
634
|
+
verification_code_length: number;
|
|
635
|
+
};
|
|
636
|
+
type ResendAgentSignupVerificationInput = {
|
|
637
|
+
signup_token: string;
|
|
638
|
+
};
|
|
639
|
+
type AgentSignupResendResult = {
|
|
640
|
+
email: string;
|
|
641
|
+
/**
|
|
642
|
+
* Seconds until the pending signup expires
|
|
643
|
+
*/
|
|
644
|
+
expires_in: number;
|
|
645
|
+
/**
|
|
646
|
+
* Minimum seconds before requesting another verification email
|
|
647
|
+
*/
|
|
648
|
+
resend_after: number;
|
|
649
|
+
/**
|
|
650
|
+
* Number of digits in the emailed verification code
|
|
651
|
+
*/
|
|
652
|
+
verification_code_length: number;
|
|
653
|
+
};
|
|
654
|
+
type VerifyAgentSignupInput = {
|
|
655
|
+
signup_token: string;
|
|
656
|
+
verification_code: string;
|
|
657
|
+
/**
|
|
658
|
+
* Optional workspace id to target when the verified email already belongs to multiple workspaces
|
|
659
|
+
*/
|
|
660
|
+
org_id?: string;
|
|
661
|
+
};
|
|
662
|
+
type AgentOrgRef = {
|
|
663
|
+
id: string;
|
|
664
|
+
name: string | null;
|
|
665
|
+
};
|
|
666
|
+
type AgentSignupVerifyResult = {
|
|
667
|
+
/**
|
|
668
|
+
* Legacy alias for access_token. New CLI builds should persist access_token and refresh_token.
|
|
548
669
|
*/
|
|
549
670
|
api_key: string;
|
|
671
|
+
/**
|
|
672
|
+
* Legacy alias for oauth_grant_id
|
|
673
|
+
*/
|
|
550
674
|
key_id: string;
|
|
675
|
+
/**
|
|
676
|
+
* Legacy display prefix derived from access_token
|
|
677
|
+
*/
|
|
551
678
|
key_prefix: string;
|
|
679
|
+
/**
|
|
680
|
+
* OAuth access token for CLI API authentication
|
|
681
|
+
*/
|
|
682
|
+
access_token: string;
|
|
683
|
+
/**
|
|
684
|
+
* OAuth refresh token used by the CLI to renew access
|
|
685
|
+
*/
|
|
686
|
+
refresh_token: string;
|
|
687
|
+
token_type: 'Bearer';
|
|
688
|
+
/**
|
|
689
|
+
* Seconds until access_token expires
|
|
690
|
+
*/
|
|
691
|
+
expires_in: number;
|
|
692
|
+
auth_method: 'oauth';
|
|
693
|
+
oauth_grant_id: string;
|
|
694
|
+
oauth_client_id: string;
|
|
552
695
|
org_id: string;
|
|
553
696
|
org_name: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* Workspaces available to the verified email. The minted session targets `org_id`.
|
|
699
|
+
*/
|
|
700
|
+
orgs: Array<AgentOrgRef>;
|
|
554
701
|
};
|
|
555
702
|
type CliLogoutInput = {
|
|
556
703
|
/**
|
|
557
|
-
* Optional
|
|
704
|
+
* Optional id guard; when provided it must match the authenticated OAuth grant id or API key id
|
|
558
705
|
*/
|
|
559
706
|
key_id?: string;
|
|
560
707
|
};
|
|
561
708
|
type CliLogoutResult = {
|
|
709
|
+
/**
|
|
710
|
+
* True when an OAuth grant was revoked. False for API-key-authenticated legacy logout, which only clears local CLI state.
|
|
711
|
+
*/
|
|
562
712
|
revoked: boolean;
|
|
563
|
-
|
|
713
|
+
/**
|
|
714
|
+
* API key id for API-key-authenticated legacy logout
|
|
715
|
+
*/
|
|
716
|
+
key_id?: string;
|
|
717
|
+
/**
|
|
718
|
+
* OAuth grant id revoked by OAuth-authenticated logout
|
|
719
|
+
*/
|
|
720
|
+
oauth_grant_id?: string;
|
|
564
721
|
};
|
|
565
722
|
type Account = {
|
|
566
723
|
id: string;
|
|
@@ -1672,13 +1829,6 @@ type FunctionListItem = {
|
|
|
1672
1829
|
* Timestamp of the most recent successful deploy. Null until the first deploy succeeds.
|
|
1673
1830
|
*/
|
|
1674
1831
|
deployed_at?: string | null;
|
|
1675
|
-
/**
|
|
1676
|
-
* URL the platform's webhook delivery loop posts to in order
|
|
1677
|
-
* to invoke the function. Reference only; not directly
|
|
1678
|
-
* callable from outside.
|
|
1679
|
-
*
|
|
1680
|
-
*/
|
|
1681
|
-
gateway_url: string;
|
|
1682
1832
|
created_at: string;
|
|
1683
1833
|
updated_at: string;
|
|
1684
1834
|
};
|
|
@@ -1703,7 +1853,6 @@ type FunctionDetail = {
|
|
|
1703
1853
|
*/
|
|
1704
1854
|
deploy_error?: string | null;
|
|
1705
1855
|
deployed_at?: string | null;
|
|
1706
|
-
gateway_url: string;
|
|
1707
1856
|
created_at: string;
|
|
1708
1857
|
updated_at: string;
|
|
1709
1858
|
};
|
|
@@ -1737,7 +1886,6 @@ type CreateFunctionResult = {
|
|
|
1737
1886
|
id: string;
|
|
1738
1887
|
name: string;
|
|
1739
1888
|
deploy_status: FunctionDeployStatus;
|
|
1740
|
-
gateway_url: string;
|
|
1741
1889
|
};
|
|
1742
1890
|
type UpdateFunctionInput = {
|
|
1743
1891
|
/**
|
|
@@ -1994,7 +2142,8 @@ type CreateFunctionSecretInput = {
|
|
|
1994
2142
|
/**
|
|
1995
2143
|
* Uppercase letters, digits, and underscores. Must start with
|
|
1996
2144
|
* a letter or underscore. System-managed keys (e.g.
|
|
1997
|
-
* PRIMITIVE_WEBHOOK_SECRET
|
|
2145
|
+
* PRIMITIVE_WEBHOOK_SECRET, PRIMITIVE_API_KEY, and
|
|
2146
|
+
* PRIMITIVE_API_BASE_URL) are reserved.
|
|
1998
2147
|
*
|
|
1999
2148
|
*/
|
|
2000
2149
|
key: string;
|
|
@@ -2082,7 +2231,7 @@ type PollCliLoginErrors = {
|
|
|
2082
2231
|
type PollCliLoginError = PollCliLoginErrors[keyof PollCliLoginErrors];
|
|
2083
2232
|
type PollCliLoginResponses = {
|
|
2084
2233
|
/**
|
|
2085
|
-
* CLI login approved and
|
|
2234
|
+
* CLI login approved and OAuth token set created
|
|
2086
2235
|
*/
|
|
2087
2236
|
200: SuccessEnvelope & {
|
|
2088
2237
|
data?: CliLoginPollResult;
|
|
@@ -2160,13 +2309,99 @@ type VerifyCliSignupErrors = {
|
|
|
2160
2309
|
type VerifyCliSignupError = VerifyCliSignupErrors[keyof VerifyCliSignupErrors];
|
|
2161
2310
|
type VerifyCliSignupResponses = {
|
|
2162
2311
|
/**
|
|
2163
|
-
* CLI signup verified and
|
|
2312
|
+
* CLI signup verified and OAuth token set created
|
|
2164
2313
|
*/
|
|
2165
2314
|
200: SuccessEnvelope & {
|
|
2166
2315
|
data?: CliSignupVerifyResult;
|
|
2167
2316
|
};
|
|
2168
2317
|
};
|
|
2169
2318
|
type VerifyCliSignupResponse = VerifyCliSignupResponses[keyof VerifyCliSignupResponses];
|
|
2319
|
+
type StartAgentSignupData = {
|
|
2320
|
+
body: StartAgentSignupInput;
|
|
2321
|
+
path?: never;
|
|
2322
|
+
query?: never;
|
|
2323
|
+
url: '/agent/signup/start';
|
|
2324
|
+
};
|
|
2325
|
+
type StartAgentSignupErrors = {
|
|
2326
|
+
/**
|
|
2327
|
+
* Invalid request parameters
|
|
2328
|
+
*/
|
|
2329
|
+
400: ErrorResponse;
|
|
2330
|
+
/**
|
|
2331
|
+
* Rate limit exceeded
|
|
2332
|
+
*/
|
|
2333
|
+
429: ErrorResponse;
|
|
2334
|
+
};
|
|
2335
|
+
type StartAgentSignupError = StartAgentSignupErrors[keyof StartAgentSignupErrors];
|
|
2336
|
+
type StartAgentSignupResponses = {
|
|
2337
|
+
/**
|
|
2338
|
+
* Agent signup session created and verification email sent
|
|
2339
|
+
*/
|
|
2340
|
+
201: SuccessEnvelope & {
|
|
2341
|
+
data?: AgentSignupStartResult;
|
|
2342
|
+
};
|
|
2343
|
+
};
|
|
2344
|
+
type StartAgentSignupResponse = StartAgentSignupResponses[keyof StartAgentSignupResponses];
|
|
2345
|
+
type ResendAgentSignupVerificationData = {
|
|
2346
|
+
body: ResendAgentSignupVerificationInput;
|
|
2347
|
+
path?: never;
|
|
2348
|
+
query?: never;
|
|
2349
|
+
url: '/agent/signup/resend';
|
|
2350
|
+
};
|
|
2351
|
+
type ResendAgentSignupVerificationErrors = {
|
|
2352
|
+
/**
|
|
2353
|
+
* Invalid token or expired token
|
|
2354
|
+
*/
|
|
2355
|
+
400: ErrorResponse;
|
|
2356
|
+
/**
|
|
2357
|
+
* Global rate limit exceeded or resend requested too quickly
|
|
2358
|
+
*/
|
|
2359
|
+
429: ErrorResponse;
|
|
2360
|
+
};
|
|
2361
|
+
type ResendAgentSignupVerificationError = ResendAgentSignupVerificationErrors[keyof ResendAgentSignupVerificationErrors];
|
|
2362
|
+
type ResendAgentSignupVerificationResponses = {
|
|
2363
|
+
/**
|
|
2364
|
+
* Verification email resent
|
|
2365
|
+
*/
|
|
2366
|
+
200: SuccessEnvelope & {
|
|
2367
|
+
data?: AgentSignupResendResult;
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
type ResendAgentSignupVerificationResponse = ResendAgentSignupVerificationResponses[keyof ResendAgentSignupVerificationResponses];
|
|
2371
|
+
type VerifyAgentSignupData = {
|
|
2372
|
+
body: VerifyAgentSignupInput;
|
|
2373
|
+
path?: never;
|
|
2374
|
+
query?: never;
|
|
2375
|
+
url: '/agent/signup/verify';
|
|
2376
|
+
};
|
|
2377
|
+
type VerifyAgentSignupErrors = {
|
|
2378
|
+
/**
|
|
2379
|
+
* Invalid request, invalid verification code, expired token, invalid signup code, or account creation failure
|
|
2380
|
+
*/
|
|
2381
|
+
400: ErrorResponse;
|
|
2382
|
+
/**
|
|
2383
|
+
* Authenticated caller lacks permission for the operation
|
|
2384
|
+
*/
|
|
2385
|
+
403: ErrorResponse;
|
|
2386
|
+
/**
|
|
2387
|
+
* Existing account is not in a usable workspace state
|
|
2388
|
+
*/
|
|
2389
|
+
409: ErrorResponse;
|
|
2390
|
+
/**
|
|
2391
|
+
* Rate limit exceeded
|
|
2392
|
+
*/
|
|
2393
|
+
429: ErrorResponse;
|
|
2394
|
+
};
|
|
2395
|
+
type VerifyAgentSignupError = VerifyAgentSignupErrors[keyof VerifyAgentSignupErrors];
|
|
2396
|
+
type VerifyAgentSignupResponses = {
|
|
2397
|
+
/**
|
|
2398
|
+
* Agent signup verified and OAuth tokens created
|
|
2399
|
+
*/
|
|
2400
|
+
200: SuccessEnvelope & {
|
|
2401
|
+
data?: AgentSignupVerifyResult;
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
type VerifyAgentSignupResponse = VerifyAgentSignupResponses[keyof VerifyAgentSignupResponses];
|
|
2170
2405
|
type CliLogoutData = {
|
|
2171
2406
|
body?: CliLogoutInput;
|
|
2172
2407
|
path?: never;
|
|
@@ -2194,7 +2429,7 @@ type CliLogoutErrors = {
|
|
|
2194
2429
|
type CliLogoutError = CliLogoutErrors[keyof CliLogoutErrors];
|
|
2195
2430
|
type CliLogoutResponses = {
|
|
2196
2431
|
/**
|
|
2197
|
-
* CLI
|
|
2432
|
+
* CLI logout completed
|
|
2198
2433
|
*/
|
|
2199
2434
|
200: SuccessEnvelope & {
|
|
2200
2435
|
data?: CliLogoutResult;
|
|
@@ -4044,7 +4279,7 @@ type ListFunctionLogsResponses = {
|
|
|
4044
4279
|
};
|
|
4045
4280
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
4046
4281
|
declare namespace sdk_gen_d_exports {
|
|
4047
|
-
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getFunctionTestRunTrace, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyCliSignup, verifyDomain };
|
|
4282
|
+
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getFunctionTestRunTrace, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain };
|
|
4048
4283
|
}
|
|
4049
4284
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4050
4285
|
/**
|
|
@@ -4072,8 +4307,8 @@ declare const startCliLogin: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
4072
4307
|
* Poll CLI browser login
|
|
4073
4308
|
*
|
|
4074
4309
|
* Polls a CLI login session until the browser approval either succeeds,
|
|
4075
|
-
* is denied, expires, or is polled too quickly. The
|
|
4076
|
-
* only after approval and is returned exactly once.
|
|
4310
|
+
* is denied, expires, or is polled too quickly. The OAuth token set is
|
|
4311
|
+
* created only after approval and is returned exactly once.
|
|
4077
4312
|
*
|
|
4078
4313
|
*/
|
|
4079
4314
|
declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Options<PollCliLoginData, ThrowOnError>) => RequestResult<PollCliLoginResponses, PollCliLoginErrors, ThrowOnError, "fields">;
|
|
@@ -4096,19 +4331,50 @@ declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Op
|
|
|
4096
4331
|
*/
|
|
4097
4332
|
declare const resendCliSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendCliSignupVerificationData, ThrowOnError>) => RequestResult<ResendCliSignupVerificationResponses, ResendCliSignupVerificationErrors, ThrowOnError, "fields">;
|
|
4098
4333
|
/**
|
|
4099
|
-
* Verify CLI signup and create
|
|
4334
|
+
* Verify CLI signup and create OAuth session
|
|
4100
4335
|
*
|
|
4101
4336
|
* Verifies the email code for a CLI signup session, creates the account,
|
|
4102
|
-
* redeems the reserved signup code,
|
|
4103
|
-
* returns the
|
|
4337
|
+
* redeems the reserved signup code, creates an org-scoped OAuth CLI
|
|
4338
|
+
* session, and returns the token set exactly once. This endpoint does not
|
|
4339
|
+
* require an API key.
|
|
4104
4340
|
*
|
|
4105
4341
|
*/
|
|
4106
4342
|
declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
|
|
4107
4343
|
/**
|
|
4108
|
-
*
|
|
4344
|
+
* Start agent account signup
|
|
4345
|
+
*
|
|
4346
|
+
* Starts an agent-native signup session. The API validates the signup code,
|
|
4347
|
+
* creates a pending signup session, sends an email verification code, and
|
|
4348
|
+
* returns an opaque signup token used by the resend and verify steps. This
|
|
4349
|
+
* endpoint does not require an API key.
|
|
4350
|
+
*
|
|
4351
|
+
*/
|
|
4352
|
+
declare const startAgentSignup: <ThrowOnError extends boolean = false>(options: Options<StartAgentSignupData, ThrowOnError>) => RequestResult<StartAgentSignupResponses, StartAgentSignupErrors, ThrowOnError, "fields">;
|
|
4353
|
+
/**
|
|
4354
|
+
* Resend agent signup verification code
|
|
4355
|
+
*
|
|
4356
|
+
* Sends a new email verification code for a pending agent signup session.
|
|
4357
|
+
* This endpoint does not require an API key.
|
|
4358
|
+
*
|
|
4359
|
+
*/
|
|
4360
|
+
declare const resendAgentSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendAgentSignupVerificationData, ThrowOnError>) => RequestResult<ResendAgentSignupVerificationResponses, ResendAgentSignupVerificationErrors, ThrowOnError, "fields">;
|
|
4361
|
+
/**
|
|
4362
|
+
* Verify agent signup and create OAuth tokens
|
|
4363
|
+
*
|
|
4364
|
+
* Verifies the email code for an agent signup session, creates the account
|
|
4365
|
+
* when needed, redeems the reserved signup code, mints an org-scoped OAuth
|
|
4366
|
+
* session for CLI authentication, and returns the raw tokens exactly once.
|
|
4367
|
+
* For existing users, the optional `org_id` selects which accessible
|
|
4368
|
+
* workspace should receive the new session.
|
|
4369
|
+
*
|
|
4370
|
+
*/
|
|
4371
|
+
declare const verifyAgentSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyAgentSignupData, ThrowOnError>) => RequestResult<VerifyAgentSignupResponses, VerifyAgentSignupErrors, ThrowOnError, "fields">;
|
|
4372
|
+
/**
|
|
4373
|
+
* Revoke the current CLI OAuth session
|
|
4109
4374
|
*
|
|
4110
|
-
* Revokes the
|
|
4111
|
-
*
|
|
4375
|
+
* Revokes the OAuth grant used to authenticate the request. API-key
|
|
4376
|
+
* authenticated legacy logout requests succeed without deleting server API
|
|
4377
|
+
* keys so old local CLI state can be cleared safely.
|
|
4112
4378
|
*
|
|
4113
4379
|
*/
|
|
4114
4380
|
declare const cliLogout: <ThrowOnError extends boolean = false>(options?: Options<CliLogoutData, ThrowOnError>) => RequestResult<CliLogoutResponses, CliLogoutErrors, ThrowOnError, "fields">;
|
|
@@ -4525,9 +4791,8 @@ declare const getSentEmail: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
4525
4791
|
* List functions
|
|
4526
4792
|
*
|
|
4527
4793
|
* Returns every active (non-deleted) function in the org, newest
|
|
4528
|
-
* first. Each entry carries
|
|
4529
|
-
*
|
|
4530
|
-
* the source code or deploy errors, use `GET /functions/{id}`.
|
|
4794
|
+
* first. Each entry carries deploy status and timestamps. To
|
|
4795
|
+
* inspect the source code or deploy errors, use `GET /functions/{id}`.
|
|
4531
4796
|
*
|
|
4532
4797
|
*/
|
|
4533
4798
|
declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Options<ListFunctionsData, ThrowOnError>) => RequestResult<ListFunctionsResponses, ListFunctionsErrors, ThrowOnError, "fields">;
|
|
@@ -4536,13 +4801,14 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
4536
4801
|
*
|
|
4537
4802
|
* Creates and deploys a new function. The handler must be a single
|
|
4538
4803
|
* ESM module whose default export is an object with an async
|
|
4539
|
-
* `fetch(request, env)` method (Workers-style).
|
|
4540
|
-
*
|
|
4541
|
-
*
|
|
4542
|
-
* `
|
|
4543
|
-
*
|
|
4544
|
-
*
|
|
4545
|
-
*
|
|
4804
|
+
* `fetch(request, env)` method (Workers-style). Primitive signs
|
|
4805
|
+
* each delivery and forwards the `Primitive-Signature` header to
|
|
4806
|
+
* the handler. Verify the raw request body with
|
|
4807
|
+
* `PRIMITIVE_WEBHOOK_SECRET` before parsing JSON; after verification
|
|
4808
|
+
* the request body parses to an `email.received` event (see
|
|
4809
|
+
* `EmailReceivedEvent` and the Webhook payload section for the full
|
|
4810
|
+
* schema). Code is bundled before being uploaded; ship a single
|
|
4811
|
+
* self-contained file rather than relying on external imports.
|
|
4546
4812
|
*
|
|
4547
4813
|
* **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
|
|
4548
4814
|
* (optional) is capped at 5 MiB UTF-8, stored with each deployment
|
|
@@ -4552,12 +4818,12 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
4552
4818
|
* **Auto-wiring.** On successful deploy, Primitive automatically
|
|
4553
4819
|
* creates a webhook endpoint that delivers inbound mail to the
|
|
4554
4820
|
* function. There is nothing to configure on the Endpoints API
|
|
4555
|
-
* for this to work; the
|
|
4556
|
-
*
|
|
4821
|
+
* for this to work; the internal runtime URL is not returned by
|
|
4822
|
+
* the API and is not a customer-facing integration surface.
|
|
4557
4823
|
*
|
|
4558
4824
|
* **Secrets.** New functions ship with the managed secrets
|
|
4559
|
-
* (`PRIMITIVE_WEBHOOK_SECRET`, `PRIMITIVE_API_KEY
|
|
4560
|
-
* bound. Add user-set secrets via
|
|
4825
|
+
* (`PRIMITIVE_WEBHOOK_SECRET`, `PRIMITIVE_API_KEY`,
|
|
4826
|
+
* `PRIMITIVE_API_BASE_URL`) already bound. Add user-set secrets via
|
|
4561
4827
|
* `POST /functions/{id}/secrets`; secret writes only land in the
|
|
4562
4828
|
* running handler on the next redeploy.
|
|
4563
4829
|
*
|
|
@@ -4649,9 +4915,9 @@ declare const getFunctionTestRunTrace: <ThrowOnError extends boolean = false>(op
|
|
|
4649
4915
|
* never returned.** Secret writes are write-only.
|
|
4650
4916
|
*
|
|
4651
4917
|
* Managed entries (e.g. `PRIMITIVE_WEBHOOK_SECRET`,
|
|
4652
|
-
* `PRIMITIVE_API_KEY`) carry a
|
|
4653
|
-
* `created_at` / `updated_at`. They
|
|
4654
|
-
* or deleted via this API.
|
|
4918
|
+
* `PRIMITIVE_API_KEY`, `PRIMITIVE_API_BASE_URL`) carry a
|
|
4919
|
+
* `description` instead of `created_at` / `updated_at`. They
|
|
4920
|
+
* cannot be created, updated, or deleted via this API.
|
|
4655
4921
|
*
|
|
4656
4922
|
*/
|
|
4657
4923
|
declare const listFunctionSecrets: <ThrowOnError extends boolean = false>(options: Options<ListFunctionSecretsData, ThrowOnError>) => RequestResult<ListFunctionSecretsResponses, ListFunctionSecretsErrors, ThrowOnError, "fields">;
|
|
@@ -4955,4 +5221,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
4955
5221
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
4956
5222
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
4957
5223
|
//#endregion
|
|
4958
|
-
export { listSentEmails as $, SearchEmailsData as $a, ListFunctionLogsError as $i, DownloadAttachmentsData as $n, UpdateAccountData as $o, GetFunctionResponses as $r, CreateFunctionData as $t, deleteEndpoint as A, ReplayEmailWebhooksData as Aa, ListDeliveriesResponses as Ai, DeleteFilterErrors as An, StartCliLoginResponse as Ao, FunctionTestRunDeliveryEndpoint as Ar, VerifyCliSignupData as As, CliLoginStartResult as At, getFunctionTestRunTrace as B, ReplyToEmailResponses as Ba, ListEmailsResponses as Bi, DeleteFunctionSecretErrors as Bn, TestEndpointData as Bo, GetAccountError as Br, VerifyDomainResponses as Bs, CliSignupVerifyResult as Bt, cliLogout as C, PollCliLoginResponse as Ca, GetWebhookSecretResponse as Ci, DeleteEndpointData as Cn, SetFunctionSecretInput as Co, FunctionDetail as Cr, UpdateFunctionData as Cs, AddDomainData as Ct, createFunctionSecret as D, ReplayDeliveryErrors as Da, ListDeliveriesError as Di, DeleteEndpointResponses as Dn, StartCliLoginError as Do, FunctionSecretWriteResult as Dr, UpdateFunctionResponse as Ds, AddDomainResponse as Dt, createFunction as E, ReplayDeliveryError as Ea, ListDeliveriesData as Ei, DeleteEndpointResponse as En, StartCliLoginData as Eo, FunctionSecretListItem as Er, UpdateFunctionInput as Es, AddDomainInput as Et, downloadAttachments as F, ReplayResult as Fa, ListDomainsResponses as Fi, DeleteFunctionErrors as Fn, StartCliSignupInput as Fo, FunctionTestRunState as Fr, VerifyCliSignupResponses as Fs, CliLogoutResponse as Ft, listDeliveries as G, ResendCliSignupVerificationResponse as Ga, ListEndpointsResponses as Gi, DiscardContentResult as Gn, TestFunctionData as Go, GetEmailError as Gr, Config as Gs, CreateEndpointResponse as Gt, getSentEmail as H, ResendCliSignupVerificationError as Ha, ListEndpointsError as Hi, DeleteFunctionSecretResponses as Hn, TestEndpointErrors as Ho, GetAccountResponse as Hr, createClient as Hs, CreateEndpointError as Ht, downloadRawEmail as I, ReplyToEmailData as Ia, ListEmailsData as Ii, DeleteFunctionResponse as In, StartCliSignupResponse as Io, FunctionTestRunTrace as Ir, VerifyDomainData as Is, CliLogoutResponses as It, listEndpoints as J, RotateWebhookSecretData as Ja, ListFiltersError as Ji, DiscardEmailContentErrors as Jn, TestFunctionResponse as Jo, GetEmailResponses as Jr, RequestOptions$2 as Js, CreateFilterError as Jt, listDomains as K, ResendCliSignupVerificationResponses as Ka, ListEnvelope as Ki, DiscardEmailContentData as Kn, TestFunctionError as Ko, GetEmailErrors as Kr, CreateClientConfig as Ks, CreateEndpointResponses as Kt, getAccount as L, ReplyToEmailError as La, ListEmailsError as Li, DeleteFunctionResponses as Ln, StartCliSignupResponses as Lo, GateDenial as Lr, VerifyDomainError as Ls, CliLogoutResult as Lt, deleteFunction as M, ReplayEmailWebhooksErrors as Ma, ListDomainsError as Mi, DeleteFilterResponses as Mn, StartCliSignupData as Mo, FunctionTestRunOutboundRequest as Mr, VerifyCliSignupErrors as Ms, CliLogoutError as Mt, deleteFunctionSecret as N, ReplayEmailWebhooksResponse as Na, ListDomainsErrors as Ni, DeleteFunctionData as Nn, StartCliSignupError as No, FunctionTestRunReply as Nr, VerifyCliSignupInput as Ns, CliLogoutErrors as Nt, deleteDomain as O, ReplayDeliveryResponse as Oa, ListDeliveriesErrors as Oi, DeleteFilterData as On, StartCliLoginErrors as Oo, FunctionTestRun as Or, UpdateFunctionResponses as Os, AddDomainResponses as Ot, discardEmailContent as P, ReplayEmailWebhooksResponses as Pa, ListDomainsResponse as Pi, DeleteFunctionError as Pn, StartCliSignupErrors as Po, FunctionTestRunSend as Pr, VerifyCliSignupResponse as Ps, CliLogoutInput as Pt, listFunctions as Q, RotateWebhookSecretResponses as Qa, ListFunctionLogsData as Qi, DomainVerifyResult as Qn, UnverifiedDomain as Qo, GetFunctionResponse as Qr, Auth as Qs, CreateFilterResponses as Qt, getEmail as R, ReplyToEmailErrors as Ra, ListEmailsErrors as Ri, DeleteFunctionSecretData as Rn, StorageStats as Ro, GateFix as Rr, VerifyDomainErrors as Rs, CliSignupResendResult as Rt, addDomain as S, PollCliLoginInput as Sa, GetWebhookSecretErrors as Si, DeleteEmailResponses as Sn, SetFunctionSecretErrors as So, FunctionDeployStatus as Sr, UpdateFilterResponses as Ss, AccountUpdated as St, createFilter as T, ReplayDeliveryData as Ta, Limit as Ti, DeleteEndpointErrors as Tn, SetFunctionSecretResponses as To, FunctionLogRow as Tr, UpdateFunctionErrors as Ts, AddDomainErrors as Tt, getStorageStats as U, ResendCliSignupVerificationErrors as Ua, ListEndpointsErrors as Ui, DeliveryStatus as Un, TestEndpointResponse as Uo, GetAccountResponses as Ur, Client as Us, CreateEndpointErrors as Ut, getSendPermissions as V, ResendCliSignupVerificationData as Va, ListEndpointsData as Vi, DeleteFunctionSecretResponse as Vn, TestEndpointError as Vo, GetAccountErrors as Vr, WebhookSecret as Vs, CreateEndpointData as Vt, getWebhookSecret as W, ResendCliSignupVerificationInput as Wa, ListEndpointsResponse as Wi, DeliverySummary as Wn, TestEndpointResponses as Wo, GetEmailData as Wr, ClientOptions as Ws, CreateEndpointInput as Wt, listFunctionLogs as X, RotateWebhookSecretErrors as Xa, ListFiltersResponse as Xi, DiscardEmailContentResponses as Xn, TestInvocationResult as Xo, GetFunctionError as Xr, ResponseStyle as Xs, CreateFilterInput as Xt, listFilters as Y, RotateWebhookSecretError as Ya, ListFiltersErrors as Yi, DiscardEmailContentResponse as Yn, TestFunctionResponses as Yo, GetFunctionData as Yr, RequestResult as Ys, CreateFilterErrors as Yt, listFunctionSecrets as Z, RotateWebhookSecretResponse as Za, ListFiltersResponses as Zi, Domain as Zn, TestResult as Zo, GetFunctionErrors as Zr, createConfig as Zs, CreateFilterResponse as Zt, PrimitiveApiClientOptions as _, ListSentEmailsResponses as _a, GetStorageStatsErrors as _i, DeleteDomainResponses as _n, SentEmailDetail as _o, EmailSummary as _r, UpdateFilterData as _s, updateFilter as _t, RequestOptions as a, ListFunctionSecretsErrors as aa, GetSendPermissionsData as ai, CreateFunctionResult as an, SendEmailError as ao, DownloadRawEmailError as ar, UpdateDomainData as as, rotateWebhookSecret as at, RequestOptions$1 as b, PollCliLoginError as ba, GetWebhookSecretData as bi, DeleteEmailErrors as bn, SetFunctionSecretData as bo, ErrorResponse as br, UpdateFilterInput as bs, verifyDomain as bt, SendThreadInput as c, ListFunctionsData as ca, GetSendPermissionsResponse as ci, CreateFunctionSecretErrors as cn, SendEmailResponses as co, DownloadRawEmailResponses as cr, UpdateDomainInput as cs, sendEmail as ct, PRIMITIVE_SIGNATURE_HEADER as d, ListFunctionsResponse as da, GetSentEmailError as di, CreateFunctionSecretResponses as dn, SendPermissionAddress as do, EmailSearchFacetBucket as dr, UpdateEndpointData as ds, startCliSignup as dt, ListFunctionLogsErrors as ea, GetFunctionTestRunTraceData as ei, CreateFunctionError as en, SearchEmailsError as eo, DownloadAttachmentsError as er, UpdateAccountError as es, pollCliLogin as et, VerifyOptions as f, ListFunctionsResponses as fa, GetSentEmailErrors as fi, Cursor as fn, SendPermissionAnyRecipient as fo, EmailSearchFacets as fr, UpdateEndpointError as fs, testEndpoint as ft, PrimitiveApiClient as g, ListSentEmailsResponse as ga, GetStorageStatsError as gi, DeleteDomainResponse as gn, SendPermissionsMeta as go, EmailStatus as gr, UpdateEndpointResponses as gs, updateEndpoint as gt, DEFAULT_API_BASE_URL_2 as h, ListSentEmailsErrors as ha, GetStorageStatsData as hi, DeleteDomainErrors as hn, SendPermissionYourDomain as ho, EmailSearchResult as hr, UpdateEndpointResponse as hs, updateDomain as ht, ReplyInput as i, ListFunctionSecretsError as ia, GetFunctionTestRunTraceResponses as ii, CreateFunctionResponses as in, SendEmailData as io, DownloadRawEmailData as ir, UpdateAccountResponses as is, resendCliSignupVerification as it, deleteFilter as j, ReplayEmailWebhooksError as ja, ListDomainsData as ji, DeleteFilterResponse as jn, StartCliLoginResponses as jo, FunctionTestRunInboundEmail as jr, VerifyCliSignupError as js, CliLogoutData as jt, deleteEmail as k, ReplayDeliveryResponses as ka, ListDeliveriesResponse as ki, DeleteFilterError as kn, StartCliLoginInput as ko, FunctionTestRunDelivery as kr, VerifiedDomain as ks, CliLoginPollResult as kt, client as l, ListFunctionsError as la, GetSendPermissionsResponses as li, CreateFunctionSecretInput as ln, SendMailInput as lo, EmailDetail as lr, UpdateDomainResponse as ls, setFunctionSecret as lt, DEFAULT_API_BASE_URL_1 as m, ListSentEmailsError as ma, GetSentEmailResponses as mi, DeleteDomainError as mn, SendPermissionRule as mo, EmailSearchMeta as mr, UpdateEndpointInput as ms, updateAccount as mt, PrimitiveClient as n, ListFunctionLogsResponses as na, GetFunctionTestRunTraceErrors as ni, CreateFunctionInput as nn, SearchEmailsResponse as no, DownloadAttachmentsResponse as nr, UpdateAccountInput as ns, replayEmailWebhooks as nt, SendInput as o, ListFunctionSecretsResponse as oa, GetSendPermissionsError as oi, CreateFunctionSecretData as on, SendEmailErrors as oo, DownloadRawEmailErrors as or, UpdateDomainError as os, sdk_gen_d_exports as ot, verifyWebhookSignature as p, ListSentEmailsData as pa, GetSentEmailResponse as pi, DeleteDomainData as pn, SendPermissionManagedZone as po, EmailSearchHighlights as pr, UpdateEndpointErrors as ps, testFunction as pt, listEmails as q, ResourceId as qa, ListFiltersData as qi, DiscardEmailContentError as qn, TestFunctionErrors as qo, GetEmailResponse as qr, Options$1 as qs, CreateFilterData as qt, PrimitiveClientOptions as r, ListFunctionSecretsData as ra, GetFunctionTestRunTraceResponse as ri, CreateFunctionResponse as rn, SearchEmailsResponses as ro, DownloadAttachmentsResponses as rr, UpdateAccountResponse as rs, replyToEmail as rt, SendResult as s, ListFunctionSecretsResponses as sa, GetSendPermissionsErrors as si, CreateFunctionSecretError as sn, SendEmailResponse as so, DownloadRawEmailResponse as sr, UpdateDomainErrors as ss, searchEmails as st, ForwardInput as t, ListFunctionLogsResponse as ta, GetFunctionTestRunTraceError as ti, CreateFunctionErrors as tn, SearchEmailsErrors as to, DownloadAttachmentsErrors as tr, UpdateAccountErrors as ts, replayDelivery as tt, createPrimitiveClient as u, ListFunctionsErrors as ua, GetSentEmailData as ui, CreateFunctionSecretResponse as un, SendMailResult as uo, EmailDetailReply as ur, UpdateDomainResponses as us, startCliLogin as ut, PrimitiveApiError as v, PaginationMeta as va, GetStorageStatsResponse as vi, DeleteEmailData as vn, SentEmailStatus as vo, EmailWebhookStatus as vr, UpdateFilterError as vs, updateFunction as vt, createEndpoint as w, PollCliLoginResponses as wa, GetWebhookSecretResponses as wi, DeleteEndpointError as wn, SetFunctionSecretResponse as wo, FunctionListItem as wr, UpdateFunctionError as ws, AddDomainError as wt, createPrimitiveApiClient as x, PollCliLoginErrors as xa, GetWebhookSecretError as xi, DeleteEmailResponse as xn, SetFunctionSecretError as xo, Filter as xr, UpdateFilterResponse as xs, Account as xt, PrimitiveApiErrorDetails as y, PollCliLoginData as ya, GetStorageStatsResponses as yi, DeleteEmailError as yn, SentEmailSummary as yo, Endpoint as yr, UpdateFilterErrors as ys, verifyCliSignup as yt, getFunction as z, ReplyToEmailResponse as za, ListEmailsResponse as zi, DeleteFunctionSecretError as zn, SuccessEnvelope as zo, GetAccountData as zr, VerifyDomainResponse as zs, CliSignupStartResult as zt };
|
|
5224
|
+
export { listSentEmails as $, ResendAgentSignupVerificationResponses as $a, ListEnvelope as $i, DiscardEmailContentData as $n, StartCliSignupErrors as $o, GetEmailErrors as $r, VerifyAgentSignupResponse as $s, CreateEndpointResponses as $t, deleteEndpoint as A, PollCliLoginResponse as Aa, GetWebhookSecretResponse as Ai, DeleteEndpointData as An, SentEmailDetail as Ao, FunctionDetail as Ar, UpdateEndpointData as As, AddDomainResponse as At, getFunctionTestRunTrace as B, ReplayEmailWebhooksResponse as Ba, ListDomainsErrors as Bi, DeleteFunctionData as Bn, StartAgentSignupError as Bo, FunctionTestRunReply as Br, UpdateFilterResponse as Bs, CliLogoutErrors as Bt, cliLogout as C, ListSentEmailsResponse as Ca, Auth as Cc, GetStorageStatsError as Ci, DeleteDomainResponse as Cn, SendMailResult as Co, EmailStatus as Cr, UpdateAccountResponses as Cs, verifyDomain as Ct, createFunctionSecret as D, PollCliLoginError as Da, GetWebhookSecretData as Di, DeleteEmailErrors as Dn, SendPermissionRule as Do, ErrorResponse as Dr, UpdateDomainInput as Ds, AddDomainError as Dt, createFunction as E, PollCliLoginData as Ea, GetStorageStatsResponses as Ei, DeleteEmailError as En, SendPermissionManagedZone as Eo, Endpoint as Er, UpdateDomainErrors as Es, AddDomainData as Et, downloadAttachments as F, ReplayDeliveryResponse as Fa, ListDeliveriesErrors as Fi, DeleteFilterData as Fn, SetFunctionSecretErrors as Fo, FunctionTestRun as Fr, UpdateEndpointResponses as Fs, AgentSignupVerifyResult as Ft, listDeliveries as G, ReplyToEmailErrors as Ga, ListEmailsErrors as Gi, DeleteFunctionSecretData as Gn, StartCliLoginData as Go, GateFix as Gr, UpdateFunctionInput as Gs, CliSignupResendResult as Gt, getSentEmail as H, ReplayResult as Ha, ListDomainsResponses as Hi, DeleteFunctionErrors as Hn, StartAgentSignupInput as Ho, FunctionTestRunState as Hr, UpdateFunctionData as Hs, CliLogoutResponse as Ht, downloadRawEmail as I, ReplayDeliveryResponses as Ia, ListDeliveriesResponse as Ii, DeleteFilterError as In, SetFunctionSecretInput as Io, FunctionTestRunDelivery as Ir, UpdateFilterData as Is, CliLoginPollResult as It, listEndpoints as J, ResendAgentSignupVerificationData as Ja, ListEndpointsData as Ji, DeleteFunctionSecretResponse as Jn, StartCliLoginInput as Jo, GetAccountErrors as Jr, VerifiedDomain as Js, CreateEndpointData as Jt, listDomains as K, ReplyToEmailResponse as Ka, ListEmailsResponse as Ki, DeleteFunctionSecretError as Kn, StartCliLoginError as Ko, GetAccountData as Kr, UpdateFunctionResponse as Ks, CliSignupStartResult as Kt, getAccount as L, ReplayEmailWebhooksData as La, ListDeliveriesResponses as Li, DeleteFilterErrors as Ln, SetFunctionSecretResponse as Lo, FunctionTestRunDeliveryEndpoint as Lr, UpdateFilterError as Ls, CliLoginStartResult as Lt, deleteFunction as M, ReplayDeliveryData as Ma, Limit as Mi, DeleteEndpointErrors as Mn, SentEmailSummary as Mo, FunctionLogRow as Mr, UpdateEndpointErrors as Ms, AgentOrgRef as Mt, deleteFunctionSecret as N, ReplayDeliveryError as Na, ListDeliveriesData as Ni, DeleteEndpointResponse as Nn, SetFunctionSecretData as No, FunctionSecretListItem as Nr, UpdateEndpointInput as Ns, AgentSignupResendResult as Nt, deleteDomain as O, PollCliLoginErrors as Oa, GetWebhookSecretError as Oi, DeleteEmailResponse as On, SendPermissionYourDomain as Oo, Filter as Or, UpdateDomainResponse as Os, AddDomainErrors as Ot, discardEmailContent as P, ReplayDeliveryErrors as Pa, ListDeliveriesError as Pi, DeleteEndpointResponses as Pn, SetFunctionSecretError as Po, FunctionSecretWriteResult as Pr, UpdateEndpointResponse as Ps, AgentSignupStartResult as Pt, listFunctions as Q, ResendAgentSignupVerificationResponse as Qa, ListEndpointsResponses as Qi, DiscardContentResult as Qn, StartCliSignupError as Qo, GetEmailError as Qr, VerifyAgentSignupInput as Qs, CreateEndpointResponse as Qt, getEmail as R, ReplayEmailWebhooksError as Ra, ListDomainsData as Ri, DeleteFilterResponse as Rn, SetFunctionSecretResponses as Ro, FunctionTestRunInboundEmail as Rr, UpdateFilterErrors as Rs, CliLogoutData as Rt, addDomain as S, ListSentEmailsErrors as Sa, createConfig as Sc, GetStorageStatsData as Si, DeleteDomainErrors as Sn, SendMailInput as So, EmailSearchResult as Sr, UpdateAccountResponse as Ss, verifyCliSignup as St, createFilter as T, PaginationMeta as Ta, GetStorageStatsResponse as Ti, DeleteEmailData as Tn, SendPermissionAnyRecipient as To, EmailWebhookStatus as Tr, UpdateDomainError as Ts, AccountUpdated as Tt, getStorageStats as U, ReplyToEmailData as Ua, ListEmailsData as Ui, DeleteFunctionResponse as Un, StartAgentSignupResponse as Uo, FunctionTestRunTrace as Ur, UpdateFunctionError as Us, CliLogoutResponses as Ut, getSendPermissions as V, ReplayEmailWebhooksResponses as Va, ListDomainsResponse as Vi, DeleteFunctionError as Vn, StartAgentSignupErrors as Vo, FunctionTestRunSend as Vr, UpdateFilterResponses as Vs, CliLogoutInput as Vt, getWebhookSecret as W, ReplyToEmailError as Wa, ListEmailsError as Wi, DeleteFunctionResponses as Wn, StartAgentSignupResponses as Wo, GateDenial as Wr, UpdateFunctionErrors as Ws, CliLogoutResult as Wt, listFunctionLogs as X, ResendAgentSignupVerificationErrors as Xa, ListEndpointsErrors as Xi, DeliveryStatus as Xn, StartCliLoginResponses as Xo, GetAccountResponses as Xr, VerifyAgentSignupError as Xs, CreateEndpointErrors as Xt, listFilters as Y, ResendAgentSignupVerificationError as Ya, ListEndpointsError as Yi, DeleteFunctionSecretResponses as Yn, StartCliLoginResponse as Yo, GetAccountResponse as Yr, VerifyAgentSignupData as Ys, CreateEndpointError as Yt, listFunctionSecrets as Z, ResendAgentSignupVerificationInput as Za, ListEndpointsResponse as Zi, DeliverySummary as Zn, StartCliSignupData as Zo, GetEmailData as Zr, VerifyAgentSignupErrors as Zs, CreateEndpointInput as Zt, PrimitiveApiClientOptions as _, ListFunctionsErrors as _a, CreateClientConfig as _c, GetSentEmailData as _i, CreateFunctionSecretResponse as _n, SendEmailData as _o, EmailDetailReply as _r, UnverifiedDomain as _s, updateDomain as _t, RequestOptions as a, ListFunctionLogsData as aa, VerifyCliSignupResponse as ac, GetFunctionResponse as ai, CreateFilterResponses as an, ResendCliSignupVerificationResponses as ao, DomainVerifyResult as ar, TestEndpointData as as, resendCliSignupVerification as at, RequestOptions$1 as b, ListSentEmailsData as ba, RequestResult as bc, GetSentEmailResponse as bi, DeleteDomainData as bn, SendEmailResponse as bo, EmailSearchHighlights as br, UpdateAccountErrors as bs, updateFunction as bt, SendThreadInput as c, ListFunctionLogsResponse as ca, VerifyDomainError as cc, GetFunctionTestRunTraceError as ci, CreateFunctionErrors as cn, RotateWebhookSecretError as co, DownloadAttachmentsErrors as cr, TestEndpointResponse as cs, searchEmails as ct, PRIMITIVE_SIGNATURE_HEADER as d, ListFunctionSecretsError as da, VerifyDomainResponses as dc, GetFunctionTestRunTraceResponses as di, CreateFunctionResponses as dn, RotateWebhookSecretResponses as do, DownloadRawEmailData as dr, TestFunctionError as ds, startAgentSignup as dt, ListFiltersData as ea, VerifyAgentSignupResponses as ec, GetEmailResponse as ei, CreateFilterData as en, ResendCliSignupVerificationData as eo, DiscardEmailContentError as er, StartCliSignupInput as es, pollCliLogin as et, VerifyOptions as f, ListFunctionSecretsErrors as fa, WebhookSecret as fc, GetSendPermissionsData as fi, CreateFunctionResult as fn, SearchEmailsData as fo, DownloadRawEmailError as fr, TestFunctionErrors as fs, startCliLogin as ft, PrimitiveApiClient as g, ListFunctionsError as ga, Config as gc, GetSendPermissionsResponses as gi, CreateFunctionSecretInput as gn, SearchEmailsResponses as go, EmailDetail as gr, TestResult as gs, updateAccount as gt, DEFAULT_API_BASE_URL_2 as h, ListFunctionsData as ha, ClientOptions as hc, GetSendPermissionsResponse as hi, CreateFunctionSecretErrors as hn, SearchEmailsResponse as ho, DownloadRawEmailResponses as hr, TestInvocationResult as hs, testFunction as ht, ReplyInput as i, ListFiltersResponses as ia, VerifyCliSignupInput as ic, GetFunctionErrors as ii, CreateFilterResponse as in, ResendCliSignupVerificationResponse as io, Domain as ir, SuccessEnvelope as is, resendAgentSignupVerification as it, deleteFilter as j, PollCliLoginResponses as ja, GetWebhookSecretResponses as ji, DeleteEndpointError as jn, SentEmailStatus as jo, FunctionListItem as jr, UpdateEndpointError as js, AddDomainResponses as jt, deleteEmail as k, PollCliLoginInput as ka, GetWebhookSecretErrors as ki, DeleteEmailResponses as kn, SendPermissionsMeta as ko, FunctionDeployStatus as kr, UpdateDomainResponses as ks, AddDomainInput as kt, client as l, ListFunctionLogsResponses as la, VerifyDomainErrors as lc, GetFunctionTestRunTraceErrors as li, CreateFunctionInput as ln, RotateWebhookSecretErrors as lo, DownloadAttachmentsResponse as lr, TestEndpointResponses as ls, sendEmail as lt, DEFAULT_API_BASE_URL_1 as m, ListFunctionSecretsResponses as ma, Client as mc, GetSendPermissionsErrors as mi, CreateFunctionSecretError as mn, SearchEmailsErrors as mo, DownloadRawEmailResponse as mr, TestFunctionResponses as ms, testEndpoint as mt, PrimitiveClient as n, ListFiltersErrors as na, VerifyCliSignupError as nc, GetFunctionData as ni, CreateFilterErrors as nn, ResendCliSignupVerificationErrors as no, DiscardEmailContentResponse as nr, StartCliSignupResponses as ns, replayEmailWebhooks as nt, SendInput as o, ListFunctionLogsError as oa, VerifyCliSignupResponses as oc, GetFunctionResponses as oi, CreateFunctionData as on, ResourceId as oo, DownloadAttachmentsData as or, TestEndpointError as os, rotateWebhookSecret as ot, verifyWebhookSignature as p, ListFunctionSecretsResponse as pa, createClient as pc, GetSendPermissionsError as pi, CreateFunctionSecretData as pn, SearchEmailsError as po, DownloadRawEmailErrors as pr, TestFunctionResponse as ps, startCliSignup as pt, listEmails as q, ReplyToEmailResponses as qa, ListEmailsResponses as qi, DeleteFunctionSecretErrors as qn, StartCliLoginErrors as qo, GetAccountError as qr, UpdateFunctionResponses as qs, CliSignupVerifyResult as qt, PrimitiveClientOptions as r, ListFiltersResponse as ra, VerifyCliSignupErrors as rc, GetFunctionError as ri, CreateFilterInput as rn, ResendCliSignupVerificationInput as ro, DiscardEmailContentResponses as rr, StorageStats as rs, replyToEmail as rt, SendResult as s, ListFunctionLogsErrors as sa, VerifyDomainData as sc, GetFunctionTestRunTraceData as si, CreateFunctionError as sn, RotateWebhookSecretData as so, DownloadAttachmentsError as sr, TestEndpointErrors as ss, sdk_gen_d_exports as st, ForwardInput as t, ListFiltersError as ta, VerifyCliSignupData as tc, GetEmailResponses as ti, CreateFilterError as tn, ResendCliSignupVerificationError as to, DiscardEmailContentErrors as tr, StartCliSignupResponse as ts, replayDelivery as tt, createPrimitiveClient as u, ListFunctionSecretsData as ua, VerifyDomainResponse as uc, GetFunctionTestRunTraceResponse as ui, CreateFunctionResponse as un, RotateWebhookSecretResponse as uo, DownloadAttachmentsResponses as ur, TestFunctionData as us, setFunctionSecret as ut, PrimitiveApiError as v, ListFunctionsResponse as va, Options$1 as vc, GetSentEmailError as vi, CreateFunctionSecretResponses as vn, SendEmailError as vo, EmailSearchFacetBucket as vr, UpdateAccountData as vs, updateEndpoint as vt, createEndpoint as w, ListSentEmailsResponses as wa, GetStorageStatsErrors as wi, DeleteDomainResponses as wn, SendPermissionAddress as wo, EmailSummary as wr, UpdateDomainData as ws, Account as wt, createPrimitiveApiClient as x, ListSentEmailsError as xa, ResponseStyle as xc, GetSentEmailResponses as xi, DeleteDomainError as xn, SendEmailResponses as xo, EmailSearchMeta as xr, UpdateAccountInput as xs, verifyAgentSignup as xt, PrimitiveApiErrorDetails as y, ListFunctionsResponses as ya, RequestOptions$2 as yc, GetSentEmailErrors as yi, Cursor as yn, SendEmailErrors as yo, EmailSearchFacets as yr, UpdateAccountError as ys, updateFilter as yt, getFunction as z, ReplayEmailWebhooksErrors as za, ListDomainsError as zi, DeleteFilterResponses as zn, StartAgentSignupData as zo, FunctionTestRunOutboundRequest as zr, UpdateFilterInput as zs, CliLogoutError as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-
|
|
1
|
+
import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-C17n15Eq.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-BRWDMD7H.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-CO-rv_nK.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-D_v8-0zX.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-
|
|
1
|
+
import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-C7hBq-Wd.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-D4FTpj38.js";
|
|
4
4
|
//#region src/index.ts
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-CDIos4wH.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|