@primitivedotdev/sdk 0.31.1 → 0.31.3

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.
@@ -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
- * Newly-created API key for CLI authentication
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 API key
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: string;
565
+ password?: string;
544
566
  };
545
567
  type CliSignupVerifyResult = {
546
568
  /**
547
- * Newly-created API key for CLI authentication
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 key id guard; when provided it must match the authenticated API key
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
- key_id: string;
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;
@@ -628,7 +785,7 @@ type WebhookSecret = {
628
785
  /**
629
786
  * A domain can be either verified or unverified. Verified domains have
630
787
  * `is_active` and `spam_threshold` fields. Unverified domains have a
631
- * `verification_token` for DNS verification.
788
+ * `verification_token` and `dns_records` for DNS setup.
632
789
  *
633
790
  */
634
791
  type Domain = VerifiedDomain | UnverifiedDomain;
@@ -642,6 +799,39 @@ type VerifiedDomain = {
642
799
  verification_token?: string | null;
643
800
  created_at: string;
644
801
  };
802
+ type DomainDnsRecord = {
803
+ /**
804
+ * DNS record type.
805
+ */
806
+ type: 'MX' | 'TXT';
807
+ /**
808
+ * DNS-provider host/name value relative to the managed root zone.
809
+ */
810
+ name: string;
811
+ /**
812
+ * Fully-qualified DNS record name.
813
+ */
814
+ fqdn: string;
815
+ /**
816
+ * Exact value to publish.
817
+ */
818
+ value: string;
819
+ /**
820
+ * MX priority. Present only for MX records.
821
+ */
822
+ priority?: number;
823
+ /**
824
+ * Suggested TTL in seconds when the API can provide one.
825
+ */
826
+ ttl?: number;
827
+ required: boolean;
828
+ purpose: 'inbound_mx' | 'ownership_verification' | 'spf' | 'dkim' | 'dmarc' | 'tls_reporting';
829
+ status: 'pending' | 'found' | 'missing' | 'incorrect';
830
+ /**
831
+ * Short explanation of why this record is needed.
832
+ */
833
+ message?: string;
834
+ };
645
835
  type UnverifiedDomain = {
646
836
  id: string;
647
837
  org_id: string;
@@ -651,6 +841,10 @@ type UnverifiedDomain = {
651
841
  * Add this value as a TXT record to verify ownership
652
842
  */
653
843
  verification_token: string;
844
+ /**
845
+ * Exact DNS records to publish for this pending domain claim.
846
+ */
847
+ dns_records?: Array<DomainDnsRecord>;
654
848
  created_at: string;
655
849
  };
656
850
  type AddDomainInput = {
@@ -658,6 +852,16 @@ type AddDomainInput = {
658
852
  * The domain name to claim (e.g. "example.com")
659
853
  */
660
854
  domain: string;
855
+ /**
856
+ * Set to true to confirm replacing an existing mailbox provider after an mx_conflict response.
857
+ */
858
+ confirmed?: boolean;
859
+ /**
860
+ * Deprecated and ignored. Outbound DNS is provisioned for every new domain claim.
861
+ *
862
+ * @deprecated
863
+ */
864
+ outbound?: boolean;
661
865
  };
662
866
  type UpdateDomainInput = {
663
867
  /**
@@ -671,6 +875,10 @@ type UpdateDomainInput = {
671
875
  };
672
876
  type DomainVerifyResult = {
673
877
  verified: boolean;
878
+ /**
879
+ * Exact DNS records checked for this verification attempt.
880
+ */
881
+ dns_records?: Array<DomainDnsRecord>;
674
882
  } | {
675
883
  verified: boolean;
676
884
  /**
@@ -681,6 +889,26 @@ type DomainVerifyResult = {
681
889
  * Whether the TXT verification record was found
682
890
  */
683
891
  txtFound: boolean;
892
+ /**
893
+ * Whether the SPF record includes Primitive.
894
+ */
895
+ spfFound?: boolean;
896
+ /**
897
+ * Whether the DKIM public key record was found.
898
+ */
899
+ dkimFound?: boolean;
900
+ /**
901
+ * Whether the DMARC record was found.
902
+ */
903
+ dmarcFound?: boolean;
904
+ /**
905
+ * Whether the TLS-RPT record was found.
906
+ */
907
+ tlsRptFound?: boolean;
908
+ /**
909
+ * Exact DNS records checked for this verification attempt.
910
+ */
911
+ dns_records?: Array<DomainDnsRecord>;
684
912
  /**
685
913
  * Human-readable verification failure reason
686
914
  */
@@ -913,6 +1141,20 @@ type EmailDetailReply = {
913
1141
  */
914
1142
  queue_id?: string | null;
915
1143
  };
1144
+ type SendMailAttachment = {
1145
+ /**
1146
+ * Attachment filename. Control characters are rejected.
1147
+ */
1148
+ filename: string;
1149
+ /**
1150
+ * Optional MIME content type. Control characters are rejected.
1151
+ */
1152
+ content_type?: string;
1153
+ /**
1154
+ * Base64-encoded attachment bytes.
1155
+ */
1156
+ content_base64: string;
1157
+ };
916
1158
  type SendMailInput = {
917
1159
  /**
918
1160
  * RFC 5322 From header. The sender domain must be a verified outbound domain for your organization.
@@ -942,6 +1184,10 @@ type SendMailInput = {
942
1184
  * Full ordered message-id chain for the thread.
943
1185
  */
944
1186
  references?: Array<string>;
1187
+ /**
1188
+ * Inline attachments. Send requests with attachments to https://api.primitive.dev/v1/send-mail. Combined raw decoded attachment bytes must be at most 31457280.
1189
+ */
1190
+ attachments?: Array<SendMailAttachment>;
945
1191
  /**
946
1192
  * When true, wait for the first downstream SMTP delivery outcome before returning.
947
1193
  */
@@ -2074,7 +2320,7 @@ type PollCliLoginErrors = {
2074
2320
  type PollCliLoginError = PollCliLoginErrors[keyof PollCliLoginErrors];
2075
2321
  type PollCliLoginResponses = {
2076
2322
  /**
2077
- * CLI login approved and API key created
2323
+ * CLI login approved and OAuth token set created
2078
2324
  */
2079
2325
  200: SuccessEnvelope & {
2080
2326
  data?: CliLoginPollResult;
@@ -2152,13 +2398,99 @@ type VerifyCliSignupErrors = {
2152
2398
  type VerifyCliSignupError = VerifyCliSignupErrors[keyof VerifyCliSignupErrors];
2153
2399
  type VerifyCliSignupResponses = {
2154
2400
  /**
2155
- * CLI signup verified and API key created
2401
+ * CLI signup verified and OAuth token set created
2156
2402
  */
2157
2403
  200: SuccessEnvelope & {
2158
2404
  data?: CliSignupVerifyResult;
2159
2405
  };
2160
2406
  };
2161
2407
  type VerifyCliSignupResponse = VerifyCliSignupResponses[keyof VerifyCliSignupResponses];
2408
+ type StartAgentSignupData = {
2409
+ body: StartAgentSignupInput;
2410
+ path?: never;
2411
+ query?: never;
2412
+ url: '/agent/signup/start';
2413
+ };
2414
+ type StartAgentSignupErrors = {
2415
+ /**
2416
+ * Invalid request parameters
2417
+ */
2418
+ 400: ErrorResponse;
2419
+ /**
2420
+ * Rate limit exceeded
2421
+ */
2422
+ 429: ErrorResponse;
2423
+ };
2424
+ type StartAgentSignupError = StartAgentSignupErrors[keyof StartAgentSignupErrors];
2425
+ type StartAgentSignupResponses = {
2426
+ /**
2427
+ * Agent signup session created and verification email sent
2428
+ */
2429
+ 201: SuccessEnvelope & {
2430
+ data?: AgentSignupStartResult;
2431
+ };
2432
+ };
2433
+ type StartAgentSignupResponse = StartAgentSignupResponses[keyof StartAgentSignupResponses];
2434
+ type ResendAgentSignupVerificationData = {
2435
+ body: ResendAgentSignupVerificationInput;
2436
+ path?: never;
2437
+ query?: never;
2438
+ url: '/agent/signup/resend';
2439
+ };
2440
+ type ResendAgentSignupVerificationErrors = {
2441
+ /**
2442
+ * Invalid token or expired token
2443
+ */
2444
+ 400: ErrorResponse;
2445
+ /**
2446
+ * Global rate limit exceeded or resend requested too quickly
2447
+ */
2448
+ 429: ErrorResponse;
2449
+ };
2450
+ type ResendAgentSignupVerificationError = ResendAgentSignupVerificationErrors[keyof ResendAgentSignupVerificationErrors];
2451
+ type ResendAgentSignupVerificationResponses = {
2452
+ /**
2453
+ * Verification email resent
2454
+ */
2455
+ 200: SuccessEnvelope & {
2456
+ data?: AgentSignupResendResult;
2457
+ };
2458
+ };
2459
+ type ResendAgentSignupVerificationResponse = ResendAgentSignupVerificationResponses[keyof ResendAgentSignupVerificationResponses];
2460
+ type VerifyAgentSignupData = {
2461
+ body: VerifyAgentSignupInput;
2462
+ path?: never;
2463
+ query?: never;
2464
+ url: '/agent/signup/verify';
2465
+ };
2466
+ type VerifyAgentSignupErrors = {
2467
+ /**
2468
+ * Invalid request, invalid verification code, expired token, invalid signup code, or account creation failure
2469
+ */
2470
+ 400: ErrorResponse;
2471
+ /**
2472
+ * Authenticated caller lacks permission for the operation
2473
+ */
2474
+ 403: ErrorResponse;
2475
+ /**
2476
+ * Existing account is not in a usable workspace state
2477
+ */
2478
+ 409: ErrorResponse;
2479
+ /**
2480
+ * Rate limit exceeded
2481
+ */
2482
+ 429: ErrorResponse;
2483
+ };
2484
+ type VerifyAgentSignupError = VerifyAgentSignupErrors[keyof VerifyAgentSignupErrors];
2485
+ type VerifyAgentSignupResponses = {
2486
+ /**
2487
+ * Agent signup verified and OAuth tokens created
2488
+ */
2489
+ 200: SuccessEnvelope & {
2490
+ data?: AgentSignupVerifyResult;
2491
+ };
2492
+ };
2493
+ type VerifyAgentSignupResponse = VerifyAgentSignupResponses[keyof VerifyAgentSignupResponses];
2162
2494
  type CliLogoutData = {
2163
2495
  body?: CliLogoutInput;
2164
2496
  path?: never;
@@ -2186,7 +2518,7 @@ type CliLogoutErrors = {
2186
2518
  type CliLogoutError = CliLogoutErrors[keyof CliLogoutErrors];
2187
2519
  type CliLogoutResponses = {
2188
2520
  /**
2189
- * CLI API key revoked
2521
+ * CLI logout completed
2190
2522
  */
2191
2523
  200: SuccessEnvelope & {
2192
2524
  data?: CliLogoutResult;
@@ -2502,6 +2834,51 @@ type VerifyDomainResponses = {
2502
2834
  };
2503
2835
  };
2504
2836
  type VerifyDomainResponse = VerifyDomainResponses[keyof VerifyDomainResponses];
2837
+ type DownloadDomainZoneFileData = {
2838
+ body?: never;
2839
+ path: {
2840
+ /**
2841
+ * Resource UUID
2842
+ */
2843
+ id: string;
2844
+ };
2845
+ query?: {
2846
+ /**
2847
+ * When true, include only outbound DNS records. Verified domains
2848
+ * default to outbound-only; pending claims default to all required
2849
+ * records.
2850
+ *
2851
+ */
2852
+ outbound_only?: boolean;
2853
+ };
2854
+ url: '/domains/{id}/zone-file';
2855
+ };
2856
+ type DownloadDomainZoneFileErrors = {
2857
+ /**
2858
+ * Invalid request parameters
2859
+ */
2860
+ 400: ErrorResponse;
2861
+ /**
2862
+ * Invalid or missing API key
2863
+ */
2864
+ 401: ErrorResponse;
2865
+ /**
2866
+ * Resource not found
2867
+ */
2868
+ 404: ErrorResponse;
2869
+ /**
2870
+ * Rate limit exceeded
2871
+ */
2872
+ 429: ErrorResponse;
2873
+ };
2874
+ type DownloadDomainZoneFileError = DownloadDomainZoneFileErrors[keyof DownloadDomainZoneFileErrors];
2875
+ type DownloadDomainZoneFileResponses = {
2876
+ /**
2877
+ * BIND-format zone file
2878
+ */
2879
+ 200: Blob | File;
2880
+ };
2881
+ type DownloadDomainZoneFileResponse = DownloadDomainZoneFileResponses[keyof DownloadDomainZoneFileResponses];
2505
2882
  type ListEmailsData = {
2506
2883
  body?: never;
2507
2884
  path?: never;
@@ -4036,7 +4413,7 @@ type ListFunctionLogsResponses = {
4036
4413
  };
4037
4414
  type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
4038
4415
  declare namespace sdk_gen_d_exports {
4039
- 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 };
4416
+ export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, 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 };
4040
4417
  }
4041
4418
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
4042
4419
  /**
@@ -4064,8 +4441,8 @@ declare const startCliLogin: <ThrowOnError extends boolean = false>(options?: Op
4064
4441
  * Poll CLI browser login
4065
4442
  *
4066
4443
  * Polls a CLI login session until the browser approval either succeeds,
4067
- * is denied, expires, or is polled too quickly. The API key is generated
4068
- * only after approval and is returned exactly once.
4444
+ * is denied, expires, or is polled too quickly. The OAuth token set is
4445
+ * created only after approval and is returned exactly once.
4069
4446
  *
4070
4447
  */
4071
4448
  declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Options<PollCliLoginData, ThrowOnError>) => RequestResult<PollCliLoginResponses, PollCliLoginErrors, ThrowOnError, "fields">;
@@ -4088,19 +4465,50 @@ declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Op
4088
4465
  */
4089
4466
  declare const resendCliSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendCliSignupVerificationData, ThrowOnError>) => RequestResult<ResendCliSignupVerificationResponses, ResendCliSignupVerificationErrors, ThrowOnError, "fields">;
4090
4467
  /**
4091
- * Verify CLI signup and create API key
4468
+ * Verify CLI signup and create OAuth session
4092
4469
  *
4093
4470
  * Verifies the email code for a CLI signup session, creates the account,
4094
- * redeems the reserved signup code, mints an org-scoped CLI API key, and
4095
- * returns the raw key exactly once. This endpoint does not require an API key.
4471
+ * redeems the reserved signup code, creates an org-scoped OAuth CLI
4472
+ * session, and returns the token set exactly once. This endpoint does not
4473
+ * require an API key.
4096
4474
  *
4097
4475
  */
4098
4476
  declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
4099
4477
  /**
4100
- * Revoke the current CLI API key
4478
+ * Start agent account signup
4101
4479
  *
4102
- * Revokes the API key used to authenticate the request. CLI clients use
4103
- * this endpoint during `primitive logout` before removing local credentials.
4480
+ * Starts an agent-native signup session. The API validates the signup code,
4481
+ * creates a pending signup session, sends an email verification code, and
4482
+ * returns an opaque signup token used by the resend and verify steps. This
4483
+ * endpoint does not require an API key.
4484
+ *
4485
+ */
4486
+ declare const startAgentSignup: <ThrowOnError extends boolean = false>(options: Options<StartAgentSignupData, ThrowOnError>) => RequestResult<StartAgentSignupResponses, StartAgentSignupErrors, ThrowOnError, "fields">;
4487
+ /**
4488
+ * Resend agent signup verification code
4489
+ *
4490
+ * Sends a new email verification code for a pending agent signup session.
4491
+ * This endpoint does not require an API key.
4492
+ *
4493
+ */
4494
+ declare const resendAgentSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendAgentSignupVerificationData, ThrowOnError>) => RequestResult<ResendAgentSignupVerificationResponses, ResendAgentSignupVerificationErrors, ThrowOnError, "fields">;
4495
+ /**
4496
+ * Verify agent signup and create OAuth tokens
4497
+ *
4498
+ * Verifies the email code for an agent signup session, creates the account
4499
+ * when needed, redeems the reserved signup code, mints an org-scoped OAuth
4500
+ * session for CLI authentication, and returns the raw tokens exactly once.
4501
+ * For existing users, the optional `org_id` selects which accessible
4502
+ * workspace should receive the new session.
4503
+ *
4504
+ */
4505
+ declare const verifyAgentSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyAgentSignupData, ThrowOnError>) => RequestResult<VerifyAgentSignupResponses, VerifyAgentSignupErrors, ThrowOnError, "fields">;
4506
+ /**
4507
+ * Revoke the current CLI OAuth session
4508
+ *
4509
+ * Revokes the OAuth grant used to authenticate the request. API-key
4510
+ * authenticated legacy logout requests succeed without deleting server API
4511
+ * keys so old local CLI state can be cleared safely.
4104
4512
  *
4105
4513
  */
4106
4514
  declare const cliLogout: <ThrowOnError extends boolean = false>(options?: Options<CliLogoutData, ThrowOnError>) => RequestResult<CliLogoutResponses, CliLogoutErrors, ThrowOnError, "fields">;
@@ -4161,9 +4569,11 @@ declare const listDomains: <ThrowOnError extends boolean = false>(options?: Opti
4161
4569
  /**
4162
4570
  * Claim a new domain
4163
4571
  *
4164
- * Creates an unverified domain claim. You will receive a
4165
- * `verification_token` to add as a DNS TXT record before
4166
- * calling the verify endpoint.
4572
+ * Creates an unverified domain claim and returns the exact
4573
+ * DNS records to publish in `dns_records`. Publish those
4574
+ * records before calling the verify endpoint. To give users
4575
+ * an importable DNS file, call `downloadDomainZoneFile` or run
4576
+ * `primitive domains zone-file --id <domain-id>`.
4167
4577
  *
4168
4578
  */
4169
4579
  declare const addDomain: <ThrowOnError extends boolean = false>(options: Options<AddDomainData, ThrowOnError>) => RequestResult<AddDomainResponses, AddDomainErrors, ThrowOnError, "fields">;
@@ -4184,12 +4594,28 @@ declare const updateDomain: <ThrowOnError extends boolean = false>(options: Opti
4184
4594
  /**
4185
4595
  * Verify domain ownership
4186
4596
  *
4187
- * Checks DNS records (MX and TXT) to verify domain ownership.
4597
+ * Checks DNS records required for inbound routing, ownership,
4598
+ * and outbound authentication: MX, ownership TXT, SPF, DKIM,
4599
+ * DMARC, and TLS-RPT.
4188
4600
  * On success, the domain is promoted from unverified to verified.
4189
- * On failure, returns which checks passed and which failed.
4601
+ * On failure, returns which checks passed and which failed,
4602
+ * plus the exact DNS records still expected. To give users
4603
+ * an importable DNS file for missing records, call
4604
+ * `downloadDomainZoneFile` or run
4605
+ * `primitive domains zone-file --id <domain-id>`.
4190
4606
  *
4191
4607
  */
4192
4608
  declare const verifyDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyDomainData, ThrowOnError>) => RequestResult<VerifyDomainResponses, VerifyDomainErrors, ThrowOnError, "fields">;
4609
+ /**
4610
+ * Download domain DNS zone file
4611
+ *
4612
+ * Downloads a BIND-format DNS zone file containing the DNS records
4613
+ * required for a domain claim. Agents should offer this after
4614
+ * `addDomain` when users want to import DNS records instead of
4615
+ * copying each record manually.
4616
+ *
4617
+ */
4618
+ declare const downloadDomainZoneFile: <ThrowOnError extends boolean = false>(options: Options<DownloadDomainZoneFileData, ThrowOnError>) => RequestResult<DownloadDomainZoneFileResponses, DownloadDomainZoneFileErrors, ThrowOnError, "fields">;
4193
4619
  /**
4194
4620
  * List inbound emails
4195
4621
  *
@@ -4947,4 +5373,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
4947
5373
  declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
4948
5374
  declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
4949
5375
  //#endregion
4950
- 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 };
5376
+ export { listFunctions as $, ReplyToEmailResponse as $a, ListEmailsResponse as $i, DiscardContentResult as $n, StartCliLoginData as $o, GetAccountData as $r, UpdateFunctionInput as $s, CreateEndpointResponse as $t, deleteEndpoint as A, ListSentEmailsResponse as Aa, createConfig as Ac, GetStorageStatsError as Ai, DeleteEmailResponses as An, SendMailInput as Ao, EmailStatus as Ar, UpdateAccountResponse as As, AddDomainInput as At, getFunction as B, ReplayDeliveryError as Ba, ListDeliveriesData as Bi, DeleteFilterResponses as Bn, SentEmailSummary as Bo, FunctionSecretListItem as Br, UpdateEndpointErrors as Bs, CliLogoutError as Bt, cliLogout as C, ListFunctionsError as Ca, ClientOptions as Cc, GetSendPermissionsResponses as Ci, DeleteDomainErrors as Cn, SearchEmailsResponses as Co, EmailDetail as Cr, TestInvocationResult as Cs, verifyCliSignup as Ct, createFunctionSecret as D, ListSentEmailsData as Da, RequestOptions$2 as Dc, GetSentEmailResponse as Di, DeleteEmailError as Dn, SendEmailResponse as Do, EmailSearchHighlights as Dr, UpdateAccountError as Ds, AddDomainData as Dt, createFunction as E, ListFunctionsResponses as Ea, Options$1 as Ec, GetSentEmailErrors as Ei, DeleteEmailData as En, SendEmailErrors as Eo, EmailSearchFacets as Er, UpdateAccountData as Es, AccountUpdated as Et, downloadAttachments as F, PollCliLoginErrors as Fa, GetWebhookSecretError as Fi, DeleteEndpointResponses as Fn, SendPermissionRule as Fo, Filter as Fr, UpdateDomainInput as Fs, AgentSignupStartResult as Ft, getWebhookSecret as G, ReplayEmailWebhooksError as Ga, ListDomainsData as Gi, DeleteFunctionResponses as Gn, SetFunctionSecretResponse as Go, FunctionTestRunInboundEmail as Gr, UpdateFilterError as Gs, CliLogoutResult as Gt, getSendPermissions as H, ReplayDeliveryResponse as Ha, ListDeliveriesErrors as Hi, DeleteFunctionError as Hn, SetFunctionSecretError as Ho, FunctionTestRun as Hr, UpdateEndpointResponse as Hs, CliLogoutInput as Ht, downloadDomainZoneFile as I, PollCliLoginInput as Ia, GetWebhookSecretErrors as Ii, DeleteFilterData as In, SendPermissionYourDomain as Io, FunctionDeployStatus as Ir, UpdateDomainResponse as Is, AgentSignupVerifyResult as It, listEmails as J, ReplayEmailWebhooksResponses as Ja, ListDomainsResponse as Ji, DeleteFunctionSecretErrors as Jn, StartAgentSignupError as Jo, FunctionTestRunSend as Jr, UpdateFilterResponse as Js, CliSignupVerifyResult as Jt, listDeliveries as K, ReplayEmailWebhooksErrors as Ka, ListDomainsError as Ki, DeleteFunctionSecretData as Kn, SetFunctionSecretResponses as Ko, FunctionTestRunOutboundRequest as Kr, UpdateFilterErrors as Ks, CliSignupResendResult as Kt, downloadRawEmail as L, PollCliLoginResponse as La, GetWebhookSecretResponse as Li, DeleteFilterError as Ln, SendPermissionsMeta as Lo, FunctionDetail as Lr, UpdateDomainResponses as Ls, CliLoginPollResult as Lt, deleteFunction as M, PaginationMeta as Ma, GetStorageStatsResponse as Mi, DeleteEndpointError as Mn, SendPermissionAddress as Mo, EmailWebhookStatus as Mr, UpdateDomainData as Ms, AddDomainResponses as Mt, deleteFunctionSecret as N, PollCliLoginData as Na, GetStorageStatsResponses as Ni, DeleteEndpointErrors as Nn, SendPermissionAnyRecipient as No, Endpoint as Nr, UpdateDomainError as Ns, AgentOrgRef as Nt, deleteDomain as O, ListSentEmailsError as Oa, RequestResult as Oc, GetSentEmailResponses as Oi, DeleteEmailErrors as On, SendEmailResponses as Oo, EmailSearchMeta as Or, UpdateAccountErrors as Os, AddDomainError as Ot, discardEmailContent as P, PollCliLoginError as Pa, GetWebhookSecretData as Pi, DeleteEndpointResponse as Pn, SendPermissionManagedZone as Po, ErrorResponse as Pr, UpdateDomainErrors as Ps, AgentSignupResendResult as Pt, listFunctionSecrets as Q, ReplyToEmailErrors as Qa, ListEmailsErrors as Qi, DeliverySummary as Qn, StartAgentSignupResponses as Qo, GateFix as Qr, UpdateFunctionErrors as Qs, CreateEndpointInput as Qt, getAccount as R, PollCliLoginResponses as Ra, GetWebhookSecretResponses as Ri, DeleteFilterErrors as Rn, SentEmailDetail as Ro, FunctionListItem as Rr, UpdateEndpointData as Rs, CliLoginStartResult as Rt, addDomain as S, ListFunctionsData as Sa, Client as Sc, GetSendPermissionsResponse as Si, DeleteDomainError as Sn, SearchEmailsResponse as So, DownloadRawEmailResponses as Sr, TestFunctionResponses as Ss, verifyAgentSignup as St, createFilter as T, ListFunctionsResponse as Ta, CreateClientConfig as Tc, GetSentEmailError as Ti, DeleteDomainResponses as Tn, SendEmailError as To, EmailSearchFacetBucket as Tr, UnverifiedDomain as Ts, Account as Tt, getSentEmail as U, ReplayDeliveryResponses as Ua, ListDeliveriesResponse as Ui, DeleteFunctionErrors as Un, SetFunctionSecretErrors as Uo, FunctionTestRunDelivery as Ur, UpdateEndpointResponses as Us, CliLogoutResponse as Ut, getFunctionTestRunTrace as V, ReplayDeliveryErrors as Va, ListDeliveriesError as Vi, DeleteFunctionData as Vn, SetFunctionSecretData as Vo, FunctionSecretWriteResult as Vr, UpdateEndpointInput as Vs, CliLogoutErrors as Vt, getStorageStats as W, ReplayEmailWebhooksData as Wa, ListDeliveriesResponses as Wi, DeleteFunctionResponse as Wn, SetFunctionSecretInput as Wo, FunctionTestRunDeliveryEndpoint as Wr, UpdateFilterData as Ws, CliLogoutResponses as Wt, listFilters as X, ReplyToEmailData as Xa, ListEmailsData as Xi, DeleteFunctionSecretResponses as Xn, StartAgentSignupInput as Xo, FunctionTestRunTrace as Xr, UpdateFunctionData as Xs, CreateEndpointError as Xt, listEndpoints as Y, ReplayResult as Ya, ListDomainsResponses as Yi, DeleteFunctionSecretResponse as Yn, StartAgentSignupErrors as Yo, FunctionTestRunState as Yr, UpdateFilterResponses as Ys, CreateEndpointData as Yt, listFunctionLogs as Z, ReplyToEmailError as Za, ListEmailsError as Zi, DeliveryStatus as Zn, StartAgentSignupResponse as Zo, GateDenial as Zr, UpdateFunctionError as Zs, CreateEndpointErrors as Zt, PrimitiveApiClientOptions as _, ListFunctionSecretsData as _a, VerifyDomainErrors as _c, GetFunctionTestRunTraceResponse as _i, CreateFunctionSecretInput as _n, RotateWebhookSecretResponse as _o, DownloadDomainZoneFileResponses as _r, TestEndpointResponses as _s, updateAccount as _t, RequestOptions as a, ListEndpointsResponses as aa, VerifyAgentSignupErrors as ac, GetEmailError as ai, CreateFilterResponse as an, ResendAgentSignupVerificationResponse as ao, Domain as ar, StartCliSignupData as as, resendAgentSignupVerification as at, RequestOptions$1 as b, ListFunctionSecretsResponse as ba, WebhookSecret as bc, GetSendPermissionsError as bi, Cursor as bn, SearchEmailsError as bo, DownloadRawEmailErrors as br, TestFunctionErrors as bs, updateFilter as bt, SendThreadInput as c, ListFiltersError as ca, VerifyAgentSignupResponses as cc, GetEmailResponses as ci, CreateFunctionError as cn, ResendCliSignupVerificationError as co, DownloadAttachmentsData as cr, StartCliSignupInput as cs, sdk_gen_d_exports as ct, PRIMITIVE_SIGNATURE_HEADER as d, ListFiltersResponses as da, VerifyCliSignupErrors as dc, GetFunctionErrors as di, CreateFunctionResponse as dn, ResendCliSignupVerificationResponse as do, DownloadAttachmentsResponse as dr, StorageStats as ds, setFunctionSecret as dt, ListEmailsResponses as ea, UpdateFunctionResponse as ec, GetAccountError as ei, CreateEndpointResponses as en, ReplyToEmailResponses as eo, DiscardEmailContentData as er, StartCliLoginError as es, listSentEmails as et, VerifyOptions as f, ListFunctionLogsData as fa, VerifyCliSignupInput as fc, GetFunctionResponse as fi, CreateFunctionResponses as fn, ResendCliSignupVerificationResponses as fo, DownloadAttachmentsResponses as fr, SuccessEnvelope as fs, startAgentSignup as ft, PrimitiveApiClient as g, ListFunctionLogsResponses as ga, VerifyDomainError as gc, GetFunctionTestRunTraceErrors as gi, CreateFunctionSecretErrors as gn, RotateWebhookSecretErrors as go, DownloadDomainZoneFileResponse as gr, TestEndpointResponse as gs, testFunction as gt, DEFAULT_API_BASE_URL_2 as h, ListFunctionLogsResponse as ha, VerifyDomainData as hc, GetFunctionTestRunTraceError as hi, CreateFunctionSecretError as hn, RotateWebhookSecretError as ho, DownloadDomainZoneFileErrors as hr, TestEndpointErrors as hs, testEndpoint as ht, ReplyInput as i, ListEndpointsResponse as ia, VerifyAgentSignupError as ic, GetEmailData as ii, CreateFilterInput as in, ResendAgentSignupVerificationInput as io, DiscardEmailContentResponses as ir, StartCliLoginResponses as is, replyToEmail as it, deleteFilter as j, ListSentEmailsResponses as ja, Auth as jc, GetStorageStatsErrors as ji, DeleteEndpointData as jn, SendMailResult as jo, EmailSummary as jr, UpdateAccountResponses as js, AddDomainResponse as jt, deleteEmail as k, ListSentEmailsErrors as ka, ResponseStyle as kc, GetStorageStatsData as ki, DeleteEmailResponse as kn, SendMailAttachment as ko, EmailSearchResult as kr, UpdateAccountInput as ks, AddDomainErrors as kt, client as l, ListFiltersErrors as la, VerifyCliSignupData as lc, GetFunctionData as li, CreateFunctionErrors as ln, ResendCliSignupVerificationErrors as lo, DownloadAttachmentsError as lr, StartCliSignupResponse as ls, searchEmails as lt, DEFAULT_API_BASE_URL_1 as m, ListFunctionLogsErrors as ma, VerifyCliSignupResponses as mc, GetFunctionTestRunTraceData as mi, CreateFunctionSecretData as mn, RotateWebhookSecretData as mo, DownloadDomainZoneFileError as mr, TestEndpointError as ms, startCliSignup as mt, PrimitiveClient as n, ListEndpointsError as na, VerifiedDomain as nc, GetAccountResponse as ni, CreateFilterError as nn, ResendAgentSignupVerificationError as no, DiscardEmailContentErrors as nr, StartCliLoginInput as ns, replayDelivery as nt, SendInput as o, ListEnvelope as oa, VerifyAgentSignupInput as oc, GetEmailErrors as oi, CreateFilterResponses as on, ResendAgentSignupVerificationResponses as oo, DomainDnsRecord as or, StartCliSignupError as os, resendCliSignupVerification as ot, verifyWebhookSignature as p, ListFunctionLogsError as pa, VerifyCliSignupResponse as pc, GetFunctionResponses as pi, CreateFunctionResult as pn, ResourceId as po, DownloadDomainZoneFileData as pr, TestEndpointData as ps, startCliLogin as pt, listDomains as q, ReplayEmailWebhooksResponse as qa, ListDomainsErrors as qi, DeleteFunctionSecretError as qn, StartAgentSignupData as qo, FunctionTestRunReply as qr, UpdateFilterInput as qs, CliSignupStartResult as qt, PrimitiveClientOptions as r, ListEndpointsErrors as ra, VerifyAgentSignupData as rc, GetAccountResponses as ri, CreateFilterErrors as rn, ResendAgentSignupVerificationErrors as ro, DiscardEmailContentResponse as rr, StartCliLoginResponse as rs, replayEmailWebhooks as rt, SendResult as s, ListFiltersData as sa, VerifyAgentSignupResponse as sc, GetEmailResponse as si, CreateFunctionData as sn, ResendCliSignupVerificationData as so, DomainVerifyResult as sr, StartCliSignupErrors as ss, rotateWebhookSecret as st, ForwardInput as t, ListEndpointsData as ta, UpdateFunctionResponses as tc, GetAccountErrors as ti, CreateFilterData as tn, ResendAgentSignupVerificationData as to, DiscardEmailContentError as tr, StartCliLoginErrors as ts, pollCliLogin as tt, createPrimitiveClient as u, ListFiltersResponse as ua, VerifyCliSignupError as uc, GetFunctionError as ui, CreateFunctionInput as un, ResendCliSignupVerificationInput as uo, DownloadAttachmentsErrors as ur, StartCliSignupResponses as us, sendEmail as ut, PrimitiveApiError as v, ListFunctionSecretsError as va, VerifyDomainResponse as vc, GetFunctionTestRunTraceResponses as vi, CreateFunctionSecretResponse as vn, RotateWebhookSecretResponses as vo, DownloadRawEmailData as vr, TestFunctionData as vs, updateDomain as vt, createEndpoint as w, ListFunctionsErrors as wa, Config as wc, GetSentEmailData as wi, DeleteDomainResponse as wn, SendEmailData as wo, EmailDetailReply as wr, TestResult as ws, verifyDomain as wt, createPrimitiveApiClient as x, ListFunctionSecretsResponses as xa, createClient as xc, GetSendPermissionsErrors as xi, DeleteDomainData as xn, SearchEmailsErrors as xo, DownloadRawEmailResponse as xr, TestFunctionResponse as xs, updateFunction as xt, PrimitiveApiErrorDetails as y, ListFunctionSecretsErrors as ya, VerifyDomainResponses as yc, GetSendPermissionsData as yi, CreateFunctionSecretResponses as yn, SearchEmailsData as yo, DownloadRawEmailError as yr, TestFunctionError as ys, updateEndpoint as yt, getEmail as z, ReplayDeliveryData as za, Limit as zi, DeleteFilterResponse as zn, SentEmailStatus as zo, FunctionLogRow as zr, UpdateEndpointError as zs, CliLogoutData as zt };