@primitivedotdev/sdk 1.22.1 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { y as ReceivedEmail } from "./errors-BSsdMlef.js";
1
+ import { y as ReceivedEmail } from "./errors-BgI9FKHK.js";
2
2
 
3
3
  //#region ../packages/api-core/src/api/core/auth.gen.d.ts
4
4
  type AuthToken = string | undefined;
@@ -799,7 +799,7 @@ type PaginationMeta = {
799
799
  type ErrorResponse = {
800
800
  success: boolean;
801
801
  error: {
802
- code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible' | 'feature_disabled' | 'memory_conflict' | 'template_not_installable' | 'scaffold_only' | 'invalid_variables' | 'unknown_secrets' | 'missing_secrets' | 'no_inbound_domain' | 'domain_cannot_send' | 'address_taken' | 'route_cap_reached' | 'name_exhausted' | 'developer_usage_credit_exhausted' | 'no_payout_address' | 'ownership_proof_failed' | 'payment_verification_failed' | 'payment_declined' | 'challenge_expired' | 'settlement_failed';
802
+ code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'not_scheduled' | 'attachment_changed' | 'content_discarded' | 'attachment_limit_exceeded' | 'attachment_integrity_failed' | 'attachment_not_ready' | 'attachment_storage_unavailable' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible' | 'feature_disabled' | 'memory_conflict' | 'template_not_installable' | 'scaffold_only' | 'invalid_variables' | 'unknown_secrets' | 'missing_secrets' | 'no_inbound_domain' | 'domain_cannot_send' | 'address_taken' | 'route_cap_reached' | 'name_exhausted' | 'developer_usage_credit_exhausted' | 'no_payout_address' | 'ownership_proof_failed' | 'payment_verification_failed' | 'payment_declined' | 'challenge_expired' | 'settlement_failed' | 'pull_unavailable' | 'subscription_conflict' | 'subscription_limit' | 'subscription_disabled' | 'request_aborted' | 'event_content_unavailable' | 'event_preparation_failed' | 'subscription_unavailable' | 'stale_delivery';
803
803
  message: string;
804
804
  /**
805
805
  * Optional structured data that callers can inspect to recover
@@ -1549,6 +1549,94 @@ type DomainVerifyResult = {
1549
1549
  */
1550
1550
  error: string;
1551
1551
  };
1552
+ /**
1553
+ * Rollup DNS health state. `pending` means never successfully
1554
+ * checked, `healthy` means all required records verified,
1555
+ * `degraded` means a previously-verified record has regressed,
1556
+ * and `suspended` means the failure persisted long enough that
1557
+ * the affected capability was disabled.
1558
+ *
1559
+ */
1560
+ type DomainDnsHealthStatus = 'pending' | 'healthy' | 'degraded' | 'suspended';
1561
+ /**
1562
+ * Health of one DNS scope: `ownership` (verification TXT),
1563
+ * `inbound` (MX), or `outbound` (SPF, DKIM, DMARC, TLS-RPT).
1564
+ *
1565
+ */
1566
+ type DomainDnsHealthScope = {
1567
+ scope: 'ownership' | 'inbound' | 'outbound';
1568
+ /**
1569
+ * Whether this scope's required records are currently verified.
1570
+ */
1571
+ verified: boolean;
1572
+ status: DomainDnsHealthStatus;
1573
+ /**
1574
+ * When this scope was last checked.
1575
+ */
1576
+ checked_at: string;
1577
+ /**
1578
+ * Next scheduled background check, or null when none is planned.
1579
+ */
1580
+ next_check_at: string | null;
1581
+ /**
1582
+ * Number of consecutive failed checks for this scope.
1583
+ */
1584
+ consecutive_failures: number;
1585
+ /**
1586
+ * The exact records inspected for this scope, each with its own status.
1587
+ */
1588
+ records: Array<DomainDnsRecord>;
1589
+ /**
1590
+ * Human-readable failure reason when the scope check errored.
1591
+ */
1592
+ error?: string;
1593
+ };
1594
+ /**
1595
+ * Result of a DNS health check, as returned by
1596
+ * /domains/{id}/dns/check and recorded as the domain's current
1597
+ * health state. The top-level fields summarize the domain
1598
+ * overall; `scopes` breaks the same check down per capability.
1599
+ *
1600
+ */
1601
+ type DomainDnsHealthCheck = {
1602
+ domain_id: string;
1603
+ /**
1604
+ * Active outbound DKIM key the outbound scope was checked against, when one exists.
1605
+ */
1606
+ key_id?: string;
1607
+ domain: string;
1608
+ /**
1609
+ * Whether every required scope is currently verified.
1610
+ */
1611
+ verified: boolean;
1612
+ status: DomainDnsHealthStatus;
1613
+ checked_at: string;
1614
+ /**
1615
+ * Next scheduled background check, or null when none is planned.
1616
+ */
1617
+ next_check_at: string | null;
1618
+ /**
1619
+ * When outbound DNS was first verified, or null if it never has been.
1620
+ */
1621
+ outbound_verified_at: string | null;
1622
+ consecutive_failures: number;
1623
+ /**
1624
+ * All records inspected across scopes, each with its own status.
1625
+ */
1626
+ records: Array<DomainDnsRecord>;
1627
+ scopes: {
1628
+ ownership: DomainDnsHealthScope;
1629
+ inbound: DomainDnsHealthScope;
1630
+ /**
1631
+ * Absent when the domain has no active outbound key to check against.
1632
+ */
1633
+ outbound?: DomainDnsHealthScope;
1634
+ };
1635
+ /**
1636
+ * Human-readable failure reason when the check errored.
1637
+ */
1638
+ error?: string;
1639
+ };
1552
1640
  type EmailSummary = {
1553
1641
  id: string;
1554
1642
  message_id?: string | null;
@@ -2163,6 +2251,18 @@ type SendMailInput = {
2163
2251
  * Maximum time to wait for a delivery outcome when wait is true. Defaults to 30000.
2164
2252
  */
2165
2253
  wait_timeout_ms?: number;
2254
+ /**
2255
+ * Optional future execution time (ISO 8601). When set, the
2256
+ * send is recorded with status `scheduled` and executed at
2257
+ * the requested time instead of immediately. Must be in the
2258
+ * future and at most 30 days out. Incompatible with `wait`
2259
+ * (a scheduled send resolves after this request completes)
2260
+ * and with `attachments` / `payload_attachments` (not yet
2261
+ * supported on scheduled sends). Reschedule via PATCH
2262
+ * /sent-emails/{id}; cancel via /sent-emails/{id}/cancel.
2263
+ *
2264
+ */
2265
+ scheduled_at?: string;
2166
2266
  };
2167
2267
  /**
2168
2268
  * Lifecycle status of an INBOUND email (a row in the `emails`
@@ -2239,9 +2339,17 @@ type EmailWebhookStatus = 'pending' | 'in_flight' | 'fired' | 'failed' | 'exhaus
2239
2339
  * poller couldn't classify the receiver's response.
2240
2340
  * - `delivered` / `bounced` / `deferred` / `wait_timeout`:
2241
2341
  * terminal delivery outcomes (see DeliveryStatus).
2342
+ * - `scheduled`: created with a future `scheduled_at` and
2343
+ * not yet executed; `scheduled_at` carries the pending
2344
+ * execution time. Reschedulable via PATCH
2345
+ * /sent-emails/{id} and cancelable via
2346
+ * /sent-emails/{id}/cancel while in this status.
2347
+ * - `canceled`: terminal; a scheduled send canceled before
2348
+ * execution. `canceled_at` carries the cancellation time
2349
+ * and nothing was dispatched.
2242
2350
  *
2243
2351
  */
2244
- type SentEmailStatus = 'queued' | 'submitted_to_agent' | 'agent_failed' | 'gate_denied' | 'unknown' | 'delivered' | 'bounced' | 'deferred' | 'wait_timeout';
2352
+ type SentEmailStatus = 'queued' | 'submitted_to_agent' | 'agent_failed' | 'gate_denied' | 'unknown' | 'delivered' | 'bounced' | 'deferred' | 'wait_timeout' | 'scheduled' | 'canceled';
2245
2353
  /**
2246
2354
  * Narrower enum covering only the four terminal delivery
2247
2355
  * outcomes returned to a synchronous `wait: true` send.
@@ -2441,6 +2549,19 @@ type SentEmailSummary = {
2441
2549
  *
2442
2550
  */
2443
2551
  request_id?: string | null;
2552
+ /**
2553
+ * Requested execution time for a scheduled send. Kept
2554
+ * after execution as the historical schedule; null on
2555
+ * ordinary immediate sends.
2556
+ *
2557
+ */
2558
+ scheduled_at?: string | null;
2559
+ /**
2560
+ * When a scheduled send was canceled. Null unless the row
2561
+ * reached the `canceled` status.
2562
+ *
2563
+ */
2564
+ canceled_at?: string | null;
2444
2565
  };
2445
2566
  /**
2446
2567
  * A searchable email field.
@@ -2618,6 +2739,166 @@ type SentEmailDetail = SentEmailSummary & {
2618
2739
  *
2619
2740
  */
2620
2741
  body_html?: string | null;
2742
+ /**
2743
+ * Metadata for submitted inline attachments; download availability is reported separately. Metadata may exist when the archive is unavailable, and legacy sends may have no metadata. Offloaded payload files are not included in the inline archive.
2744
+ */
2745
+ attachments?: Array<{
2746
+ filename: string | null;
2747
+ content_type: string;
2748
+ size_bytes: number;
2749
+ sha256: string;
2750
+ part_index: number;
2751
+ tar_path: string;
2752
+ [key: string]: unknown;
2753
+ }>;
2754
+ /**
2755
+ * Original decoded attachment byte total accepted for this send, not the compressed archive size. It may exceed the retained inline total after offloading.
2756
+ */
2757
+ attachments_size_bytes?: number;
2758
+ /**
2759
+ * Whether attachments enumerates the complete original submitted attachment set, including zero-byte and inline CID parts. True requires no submitted payload-reference, offloaded, or visibility-filtered attachment to be omitted, retained content, and a published archive when the attachment inventory is nonempty. False or absent provides no completeness proof, including for legacy or discarded content. This field grants no download access and has no interaction semantics.
2760
+ */
2761
+ attachments_complete?: boolean;
2762
+ /**
2763
+ * Whether an inline attachment archive has been successfully retained and is available for download. Download authorization is checked separately; address-bound agent connection keys cannot download archives.
2764
+ */
2765
+ attachments_download_available?: boolean;
2766
+ };
2767
+ /**
2768
+ * A threaded inbound reply to one of the org's sends, keyed by
2769
+ * the inbound email's `reply_to_sent_email_id`. Compact on
2770
+ * purpose: enough to read the reply and decide what to do
2771
+ * next, with `/emails/{id}` available for the fully parsed
2772
+ * detail.
2773
+ *
2774
+ */
2775
+ type ReplyEmail = {
2776
+ /**
2777
+ * Inbound email row id; usable with `/emails/{id}`.
2778
+ */
2779
+ id: string;
2780
+ /**
2781
+ * Conversation thread id; usable with `/threads/{id}`.
2782
+ */
2783
+ thread_id: string | null;
2784
+ /**
2785
+ * The sent-email id this inbound message replied to.
2786
+ */
2787
+ reply_to_sent_email_id: string | null;
2788
+ /**
2789
+ * Sender of the reply (From header when present, else envelope sender).
2790
+ */
2791
+ from_email: string;
2792
+ /**
2793
+ * Recipient address the reply arrived at.
2794
+ */
2795
+ to_email: string;
2796
+ subject: string | null;
2797
+ /**
2798
+ * Plain-text body of the reply, when present.
2799
+ */
2800
+ body_text: string | null;
2801
+ /**
2802
+ * HTML body of the reply, when present.
2803
+ */
2804
+ body_html: string | null;
2805
+ received_at: string | null;
2806
+ /**
2807
+ * Inbound processing status of the reply row. Typically an
2808
+ * `EmailStatus` value, but left as an open string here to
2809
+ * match the server contract, which does not narrow it.
2810
+ *
2811
+ */
2812
+ status: string;
2813
+ };
2814
+ /**
2815
+ * Result of `/sent-emails/{id}/reply`. `reply` is null when no
2816
+ * reply has arrived yet (no-wait call, or the wait timed out).
2817
+ *
2818
+ */
2819
+ type AwaitReplyResult = {
2820
+ /**
2821
+ * The send this lookup was keyed on (echoes the path id).
2822
+ */
2823
+ sent_email_id: string;
2824
+ reply: ReplyEmail | null;
2825
+ /**
2826
+ * Whether the call ran in long-poll mode (`wait=true`).
2827
+ */
2828
+ waited: boolean;
2829
+ /**
2830
+ * True only when a `wait=true` call elapsed its timeout with no reply.
2831
+ */
2832
+ timed_out: boolean;
2833
+ };
2834
+ /**
2835
+ * Per-domain outbound (sending) readiness.
2836
+ */
2837
+ type OutboundStatusDomain = {
2838
+ id: string;
2839
+ domain: string;
2840
+ /**
2841
+ * Single actionable state collapsing the sending
2842
+ * prerequisites: `sendable` (you may send From this domain
2843
+ * now), `pending_ownership` (ownership TXT not verified),
2844
+ * `pending_outbound_dns` (ownership done, SPF/DKIM/DMARC
2845
+ * not verified), or `inactive` (domain deactivated;
2846
+ * re-adding it, not publishing DNS, is the fix).
2847
+ *
2848
+ */
2849
+ status: 'sendable' | 'pending_outbound_dns' | 'pending_ownership' | 'inactive';
2850
+ ownership_verified: boolean;
2851
+ /**
2852
+ * Whether the domain has an active outbound key with verified outbound DNS.
2853
+ */
2854
+ outbound_verified: boolean;
2855
+ };
2856
+ /**
2857
+ * Outbound sending readiness for the caller's org, the outbound
2858
+ * mirror of InboxStatus.
2859
+ *
2860
+ */
2861
+ type OutboundStatus = {
2862
+ /**
2863
+ * True when at least one domain is sendable right now.
2864
+ */
2865
+ ready: boolean;
2866
+ /**
2867
+ * Short human-readable status summary.
2868
+ */
2869
+ summary: string;
2870
+ /**
2871
+ * Flat, sorted list of From-domains the org may send from
2872
+ * right now. The same set echoed in a
2873
+ * `cannot_send_from_domain` error's `details.valid_senders`,
2874
+ * so recovery from that error and orientation here agree.
2875
+ *
2876
+ */
2877
+ sendable_domains: Array<string>;
2878
+ domains: Array<OutboundStatusDomain>;
2879
+ /**
2880
+ * Concrete remediation steps for domains that are not yet
2881
+ * sendable. The server contract leaves entries open-ended;
2882
+ * in practice each carries a `kind`, a human-readable
2883
+ * `message`, and, when there is an obvious next step, a
2884
+ * suggested CLI `command`.
2885
+ *
2886
+ */
2887
+ next_actions: Array<{
2888
+ kind?: string;
2889
+ message?: string;
2890
+ command?: string;
2891
+ [key: string]: unknown;
2892
+ }>;
2893
+ };
2894
+ type SentEmailRescheduleInput = {
2895
+ /**
2896
+ * New execution time (ISO 8601). Must be in the future and
2897
+ * at most 30 days out, the same bounds as the create-time
2898
+ * field on /send-mail.
2899
+ *
2900
+ */
2901
+ scheduled_at: string;
2621
2902
  };
2622
2903
  /**
2623
2904
  * Body shape for `/emails/{id}/reply`. Intentionally narrow:
@@ -2737,6 +3018,14 @@ type SendMailResult = {
2737
3018
  *
2738
3019
  */
2739
3020
  idempotent_replay: boolean;
3021
+ /**
3022
+ * Echoed requested execution time on a `scheduled`
3023
+ * response. On scheduled creates, nothing is dispatched
3024
+ * yet: `queue_id` is null and `accepted` / `rejected` are
3025
+ * empty. Absent on immediate sends.
3026
+ *
3027
+ */
3028
+ scheduled_at?: string;
2740
3029
  };
2741
3030
  /**
2742
3031
  * One recipient-scope rule describing a destination the caller
@@ -2867,6 +3156,89 @@ type SendPermissionsMeta = {
2867
3156
  */
2868
3157
  truncated: boolean;
2869
3158
  };
3159
+ type PullWebhookInput = {
3160
+ wait_seconds?: number;
3161
+ };
3162
+ type PullWebhookResponse = {
3163
+ success: true;
3164
+ data: {
3165
+ delivery: {
3166
+ queue_id: string;
3167
+ event_id: string;
3168
+ event_type: string;
3169
+ delivery_id: string;
3170
+ lease_token: string;
3171
+ lease_expires_at: string;
3172
+ body: string;
3173
+ headers: {
3174
+ [key: string]: string;
3175
+ };
3176
+ } | null;
3177
+ backlog: number;
3178
+ gap_count: number;
3179
+ last_gap_reason: string | null;
3180
+ retention_seconds: 86400;
3181
+ handler_timeout_seconds: 30;
3182
+ };
3183
+ meta?: {
3184
+ total?: number;
3185
+ total_capped?: boolean;
3186
+ limit?: number;
3187
+ cursor?: string | null;
3188
+ [key: string]: unknown;
3189
+ };
3190
+ [key: string]: unknown;
3191
+ };
3192
+ type CompleteWebhookInput = ({
3193
+ mode: 'http';
3194
+ } & CompleteWebhookHttpInput) | ({
3195
+ mode: 'exec';
3196
+ } & CompleteWebhookExecInput) | ({
3197
+ mode: 'stdout';
3198
+ } & CompleteWebhookStdoutInput);
3199
+ type CompleteWebhookHttpInput = {
3200
+ queue_id: string;
3201
+ delivery_id: string;
3202
+ lease_token: string;
3203
+ duration_ms: number;
3204
+ mode: 'http';
3205
+ status_code: number | null;
3206
+ transport_error?: 'timeout' | 'network' | 'response_too_large' | 'io';
3207
+ error_code?: string;
3208
+ confirmed?: boolean;
3209
+ };
3210
+ type CompleteWebhookExecInput = {
3211
+ queue_id: string;
3212
+ delivery_id: string;
3213
+ lease_token: string;
3214
+ duration_ms: number;
3215
+ mode: 'exec';
3216
+ exit_code: number | null;
3217
+ transport_error?: 'timeout' | 'io';
3218
+ };
3219
+ type CompleteWebhookStdoutInput = {
3220
+ queue_id: string;
3221
+ delivery_id: string;
3222
+ lease_token: string;
3223
+ duration_ms: number;
3224
+ mode: 'stdout';
3225
+ write_succeeded: boolean;
3226
+ transport_error?: 'io';
3227
+ };
3228
+ type CompleteWebhookResponse = {
3229
+ success: true;
3230
+ data: {
3231
+ result: 'completed' | 'already_completed';
3232
+ };
3233
+ meta?: {
3234
+ total?: number;
3235
+ total_capped?: boolean;
3236
+ limit?: number;
3237
+ cursor?: string | null;
3238
+ [key: string]: unknown;
3239
+ };
3240
+ [key: string]: unknown;
3241
+ };
2870
3242
  type Endpoint = {
2871
3243
  id: string;
2872
3244
  org_id: string;
@@ -2880,6 +3252,7 @@ type Endpoint = {
2880
3252
  * Endpoint-specific filtering rules
2881
3253
  */
2882
3254
  rules: {
3255
+ event_types?: Array<string>;
2883
3256
  [key: string]: unknown;
2884
3257
  };
2885
3258
  created_at: string;
@@ -2907,7 +3280,7 @@ type Endpoint = {
2907
3280
  /**
2908
3281
  * http: deliver to the webhook URL. function: invoke a Primitive Function.
2909
3282
  */
2910
- kind?: 'http' | 'function';
3283
+ kind?: 'http' | 'function' | 'pull';
2911
3284
  /**
2912
3285
  * The Function this endpoint invokes, when kind is function.
2913
3286
  */
@@ -2919,12 +3292,16 @@ type Endpoint = {
2919
3292
  *
2920
3293
  */
2921
3294
  is_route_target?: boolean;
3295
+ /**
3296
+ * Stable name of a pull destination.
3297
+ */
3298
+ name?: string | null;
2922
3299
  };
2923
3300
  type CreateEndpointInput = {
2924
3301
  /**
2925
- * http: deliver to a webhook URL (provide url). function: invoke a Primitive Function (provide function_id, omit url).
3302
+ * http: deliver to url. function: invoke function_id. pull: receive locally using a stable name, without a URL.
2926
3303
  */
2927
- kind?: 'http' | 'function';
3304
+ kind?: 'http' | 'function' | 'pull';
2928
3305
  /**
2929
3306
  * The webhook URL to deliver events to. Required when kind is http; omit for function endpoints.
2930
3307
  */
@@ -2945,6 +3322,7 @@ type CreateEndpointInput = {
2945
3322
  * Endpoint-specific filtering rules
2946
3323
  */
2947
3324
  rules?: {
3325
+ event_types?: Array<string>;
2948
3326
  [key: string]: unknown;
2949
3327
  };
2950
3328
  /**
@@ -2954,6 +3332,10 @@ type CreateEndpointInput = {
2954
3332
  *
2955
3333
  */
2956
3334
  is_route_target?: boolean;
3335
+ /**
3336
+ * Stable account-scoped name, required for kind=pull.
3337
+ */
3338
+ name?: string;
2957
3339
  };
2958
3340
  type UpdateEndpointInput = {
2959
3341
  /**
@@ -2963,6 +3345,7 @@ type UpdateEndpointInput = {
2963
3345
  enabled?: boolean;
2964
3346
  domain_id?: string | null;
2965
3347
  rules?: {
3348
+ event_types?: Array<string>;
2966
3349
  [key: string]: unknown;
2967
3350
  };
2968
3351
  };
@@ -2980,6 +3363,83 @@ type TestResult = {
2980
3363
  */
2981
3364
  signature?: string;
2982
3365
  };
3366
+ type TestEndpointRulesInput = {
3367
+ /**
3368
+ * Id of an already-received email (in your org) to evaluate the rules against.
3369
+ */
3370
+ email_id: string;
3371
+ };
3372
+ /**
3373
+ * Verdict of a dry-run rule evaluation. Produced by the same
3374
+ * shared matcher the live delivery paths use.
3375
+ *
3376
+ */
3377
+ type TestEndpointRulesResult = {
3378
+ /**
3379
+ * Whether the delivery path would deliver this email to the endpoint.
3380
+ */
3381
+ would_deliver: boolean;
3382
+ /**
3383
+ * Name of the failing rule when delivery would be
3384
+ * suppressed; null when the message matches and the
3385
+ * endpoint is subscribed to the event type.
3386
+ *
3387
+ */
3388
+ rule: string | null;
3389
+ /**
3390
+ * Human-readable explanation of the failing rule; null when the message matches.
3391
+ */
3392
+ reason: string | null;
3393
+ /**
3394
+ * False when the endpoint's stored rules blob failed
3395
+ * validation. Delivery fails OPEN on an invalid blob
3396
+ * (delivers as if unfiltered), so false here surfaces a
3397
+ * misconfiguration that is otherwise silent.
3398
+ *
3399
+ */
3400
+ rules_valid: boolean;
3401
+ /**
3402
+ * Whether the endpoint's event-type subscription includes
3403
+ * this email's event type. A separate gate applied before
3404
+ * message matching, surfaced independently so an
3405
+ * unsubscribed endpoint is distinguishable from a rule
3406
+ * rejection.
3407
+ *
3408
+ */
3409
+ subscribed_to_event: boolean;
3410
+ /**
3411
+ * The event type this email would be delivered as.
3412
+ */
3413
+ event_type: string;
3414
+ /**
3415
+ * The message metadata the matcher compared, so the caller
3416
+ * can see WHAT was evaluated (in particular the
3417
+ * authenticated From identity versus the raw envelope
3418
+ * sender).
3419
+ *
3420
+ */
3421
+ evaluated: {
3422
+ size_bytes: number;
3423
+ has_attachments: boolean;
3424
+ attachment_size_bytes: number;
3425
+ /**
3426
+ * Raw envelope sender the blacklist matches against.
3427
+ */
3428
+ sender: string;
3429
+ /**
3430
+ * Bare From-header address, when one was present.
3431
+ */
3432
+ from_address: string | null;
3433
+ /**
3434
+ * Whether the sender identity passed authentication (the whitelist matches only authenticated identities).
3435
+ */
3436
+ sender_authenticated: boolean;
3437
+ /**
3438
+ * Which signal established (or failed to establish) the sender identity.
3439
+ */
3440
+ sender_trust_basis: string;
3441
+ };
3442
+ };
2983
3443
  type Filter = {
2984
3444
  id: string;
2985
3445
  org_id: string;
@@ -4092,6 +4552,10 @@ type TemplateInstallStatus = {
4092
4552
  created_at: string;
4093
4553
  updated_at: string;
4094
4554
  };
4555
+ /**
4556
+ * The attachment metadata `part_index`, not its offset in the attachments array
4557
+ */
4558
+ type AttachmentPartIndex = number;
4095
4559
  /**
4096
4560
  * Resource UUID
4097
4561
  */
@@ -4828,6 +5292,51 @@ type VerifyDomainResponses = {
4828
5292
  };
4829
5293
  };
4830
5294
  type VerifyDomainResponse = VerifyDomainResponses[keyof VerifyDomainResponses];
5295
+ type CheckDomainDnsData = {
5296
+ body?: never;
5297
+ path: {
5298
+ /**
5299
+ * Resource UUID
5300
+ */
5301
+ id: string;
5302
+ };
5303
+ query?: never;
5304
+ url: '/domains/{id}/dns/check';
5305
+ };
5306
+ type CheckDomainDnsErrors = {
5307
+ /**
5308
+ * Invalid request parameters
5309
+ */
5310
+ 400: ErrorResponse;
5311
+ /**
5312
+ * Invalid or missing API key
5313
+ */
5314
+ 401: ErrorResponse;
5315
+ /**
5316
+ * Resource not found
5317
+ */
5318
+ 404: ErrorResponse;
5319
+ /**
5320
+ * The domain's active outbound key changed while the check
5321
+ * was running. Nothing was recorded; retry the check.
5322
+ *
5323
+ */
5324
+ 409: ErrorResponse;
5325
+ /**
5326
+ * Rate limit exceeded
5327
+ */
5328
+ 429: ErrorResponse;
5329
+ };
5330
+ type CheckDomainDnsError = CheckDomainDnsErrors[keyof CheckDomainDnsErrors];
5331
+ type CheckDomainDnsResponses = {
5332
+ /**
5333
+ * DNS health check result
5334
+ */
5335
+ 200: SuccessEnvelope & {
5336
+ data?: DomainDnsHealthCheck;
5337
+ };
5338
+ };
5339
+ type CheckDomainDnsResponse = CheckDomainDnsResponses[keyof CheckDomainDnsResponses];
4831
5340
  type DownloadDomainZoneFileData = {
4832
5341
  body?: never;
4833
5342
  path: {
@@ -5248,6 +5757,128 @@ type DownloadAttachmentsResponses = {
5248
5757
  200: Blob | File;
5249
5758
  };
5250
5759
  type DownloadAttachmentsResponse = DownloadAttachmentsResponses[keyof DownloadAttachmentsResponses];
5760
+ type DownloadEmailAttachmentPartData = {
5761
+ body?: never;
5762
+ path: {
5763
+ /**
5764
+ * Resource UUID
5765
+ */
5766
+ id: string;
5767
+ /**
5768
+ * The attachment metadata `part_index`, not its offset in the attachments array
5769
+ */
5770
+ part_index: number;
5771
+ };
5772
+ query?: never;
5773
+ url: '/emails/{id}/attachments/{part_index}';
5774
+ };
5775
+ type DownloadEmailAttachmentPartErrors = {
5776
+ /**
5777
+ * Invalid request parameters
5778
+ */
5779
+ 400: ErrorResponse;
5780
+ /**
5781
+ * Invalid or missing API key
5782
+ */
5783
+ 401: ErrorResponse;
5784
+ /**
5785
+ * Authenticated caller lacks permission for the operation
5786
+ */
5787
+ 403: ErrorResponse;
5788
+ /**
5789
+ * Missing or inaccessible message, or missing attachment part
5790
+ */
5791
+ 404: ErrorResponse;
5792
+ /**
5793
+ * attachment_changed; refresh email detail before selecting a part again
5794
+ */
5795
+ 409: ErrorResponse;
5796
+ /**
5797
+ * content_discarded; the original content is no longer available
5798
+ */
5799
+ 410: ErrorResponse;
5800
+ /**
5801
+ * attachment_limit_exceeded; the attachment exceeds download limits
5802
+ */
5803
+ 413: ErrorResponse;
5804
+ /**
5805
+ * attachment_integrity_failed; stored content failed integrity validation
5806
+ */
5807
+ 502: ErrorResponse;
5808
+ /**
5809
+ * attachment_not_ready or attachment_storage_unavailable; retry after the indicated delay
5810
+ */
5811
+ 503: ErrorResponse;
5812
+ };
5813
+ type DownloadEmailAttachmentPartError = DownloadEmailAttachmentPartErrors[keyof DownloadEmailAttachmentPartErrors];
5814
+ type DownloadEmailAttachmentPartResponses = {
5815
+ /**
5816
+ * Original attachment bytes; never a JSON envelope or a base64 string
5817
+ */
5818
+ 200: Blob | File;
5819
+ };
5820
+ type DownloadEmailAttachmentPartResponse = DownloadEmailAttachmentPartResponses[keyof DownloadEmailAttachmentPartResponses];
5821
+ type DownloadSentAttachmentPartData = {
5822
+ body?: never;
5823
+ path: {
5824
+ /**
5825
+ * Resource UUID
5826
+ */
5827
+ id: string;
5828
+ /**
5829
+ * The attachment metadata `part_index`, not its offset in the attachments array
5830
+ */
5831
+ part_index: number;
5832
+ };
5833
+ query?: never;
5834
+ url: '/sent-emails/{id}/attachments/{part_index}';
5835
+ };
5836
+ type DownloadSentAttachmentPartErrors = {
5837
+ /**
5838
+ * Invalid request parameters
5839
+ */
5840
+ 400: ErrorResponse;
5841
+ /**
5842
+ * Invalid or missing API key
5843
+ */
5844
+ 401: ErrorResponse;
5845
+ /**
5846
+ * Authenticated caller lacks permission for the operation
5847
+ */
5848
+ 403: ErrorResponse;
5849
+ /**
5850
+ * Missing or inaccessible message, or missing attachment part
5851
+ */
5852
+ 404: ErrorResponse;
5853
+ /**
5854
+ * attachment_changed; refresh email detail before selecting a part again
5855
+ */
5856
+ 409: ErrorResponse;
5857
+ /**
5858
+ * content_discarded; the original content is no longer available
5859
+ */
5860
+ 410: ErrorResponse;
5861
+ /**
5862
+ * attachment_limit_exceeded; the attachment exceeds download limits
5863
+ */
5864
+ 413: ErrorResponse;
5865
+ /**
5866
+ * attachment_integrity_failed; stored content failed integrity validation
5867
+ */
5868
+ 502: ErrorResponse;
5869
+ /**
5870
+ * attachment_not_ready or attachment_storage_unavailable; retry after the indicated delay
5871
+ */
5872
+ 503: ErrorResponse;
5873
+ };
5874
+ type DownloadSentAttachmentPartError = DownloadSentAttachmentPartErrors[keyof DownloadSentAttachmentPartErrors];
5875
+ type DownloadSentAttachmentPartResponses = {
5876
+ /**
5877
+ * Original attachment bytes; never a JSON envelope or a base64 string
5878
+ */
5879
+ 200: Blob | File;
5880
+ };
5881
+ type DownloadSentAttachmentPartResponse = DownloadSentAttachmentPartResponses[keyof DownloadSentAttachmentPartResponses];
5251
5882
  type ReplyToEmailData = {
5252
5883
  body: ReplyInput$1;
5253
5884
  path: {
@@ -5461,26 +6092,173 @@ type CreateEndpointData = {
5461
6092
  };
5462
6093
  type CreateEndpointErrors = {
5463
6094
  /**
5464
- * Invalid request parameters
6095
+ * Invalid request parameters
6096
+ */
6097
+ 400: ErrorResponse;
6098
+ /**
6099
+ * Invalid or missing API key
6100
+ */
6101
+ 401: ErrorResponse;
6102
+ /**
6103
+ * The request conflicts with the current state of the resource
6104
+ */
6105
+ 409: ErrorResponse;
6106
+ /**
6107
+ * Local receiving is unavailable
6108
+ */
6109
+ 503: ErrorResponse;
6110
+ };
6111
+ type CreateEndpointError = CreateEndpointErrors[keyof CreateEndpointErrors];
6112
+ type CreateEndpointResponses = {
6113
+ /**
6114
+ * Existing named pull destination resumed
6115
+ */
6116
+ 200: SuccessEnvelope & {
6117
+ data?: Endpoint;
6118
+ };
6119
+ /**
6120
+ * Endpoint created (or reactivated)
6121
+ */
6122
+ 201: SuccessEnvelope & {
6123
+ data?: Endpoint;
6124
+ };
6125
+ };
6126
+ type CreateEndpointResponse = CreateEndpointResponses[keyof CreateEndpointResponses];
6127
+ type DeleteEndpointData = {
6128
+ body?: never;
6129
+ path: {
6130
+ /**
6131
+ * Resource UUID
6132
+ */
6133
+ id: string;
6134
+ };
6135
+ query?: never;
6136
+ url: '/endpoints/{id}';
6137
+ };
6138
+ type DeleteEndpointErrors = {
6139
+ /**
6140
+ * Invalid request parameters
6141
+ */
6142
+ 400: ErrorResponse;
6143
+ /**
6144
+ * Invalid or missing API key
6145
+ */
6146
+ 401: ErrorResponse;
6147
+ /**
6148
+ * Resource not found
6149
+ */
6150
+ 404: ErrorResponse;
6151
+ };
6152
+ type DeleteEndpointError = DeleteEndpointErrors[keyof DeleteEndpointErrors];
6153
+ type DeleteEndpointResponses = {
6154
+ /**
6155
+ * Resource deleted
6156
+ */
6157
+ 200: SuccessEnvelope & {
6158
+ data?: {
6159
+ deleted: boolean;
6160
+ };
6161
+ };
6162
+ };
6163
+ type DeleteEndpointResponse = DeleteEndpointResponses[keyof DeleteEndpointResponses];
6164
+ type UpdateEndpointData = {
6165
+ body: UpdateEndpointInput;
6166
+ path: {
6167
+ /**
6168
+ * Resource UUID
6169
+ */
6170
+ id: string;
6171
+ };
6172
+ query?: never;
6173
+ url: '/endpoints/{id}';
6174
+ };
6175
+ type UpdateEndpointErrors = {
6176
+ /**
6177
+ * Invalid request parameters
6178
+ */
6179
+ 400: ErrorResponse;
6180
+ /**
6181
+ * Invalid or missing API key
6182
+ */
6183
+ 401: ErrorResponse;
6184
+ /**
6185
+ * Resource not found
6186
+ */
6187
+ 404: ErrorResponse;
6188
+ /**
6189
+ * The request conflicts with the current state of the resource
6190
+ */
6191
+ 409: ErrorResponse;
6192
+ };
6193
+ type UpdateEndpointError = UpdateEndpointErrors[keyof UpdateEndpointErrors];
6194
+ type UpdateEndpointResponses = {
6195
+ /**
6196
+ * Updated endpoint
6197
+ */
6198
+ 200: SuccessEnvelope & {
6199
+ data?: Endpoint;
6200
+ };
6201
+ };
6202
+ type UpdateEndpointResponse = UpdateEndpointResponses[keyof UpdateEndpointResponses];
6203
+ type PullWebhookEventData = {
6204
+ body: PullWebhookInput;
6205
+ path: {
6206
+ /**
6207
+ * Resource UUID
6208
+ */
6209
+ id: string;
6210
+ };
6211
+ query?: never;
6212
+ url: '/endpoints/{id}/pull';
6213
+ };
6214
+ type PullWebhookEventErrors = {
6215
+ /**
6216
+ * Invalid request parameters
6217
+ */
6218
+ 400: ErrorResponse;
6219
+ /**
6220
+ * Invalid or missing API key
6221
+ */
6222
+ 401: ErrorResponse;
6223
+ /**
6224
+ * Authenticated caller lacks permission for the operation
6225
+ */
6226
+ 403: ErrorResponse;
6227
+ /**
6228
+ * Resource not found
6229
+ */
6230
+ 404: ErrorResponse;
6231
+ /**
6232
+ * Request was canceled
6233
+ */
6234
+ 408: ErrorResponse;
6235
+ /**
6236
+ * The request conflicts with the current state of the resource
6237
+ */
6238
+ 409: ErrorResponse;
6239
+ /**
6240
+ * Queued content is no longer available
6241
+ */
6242
+ 410: ErrorResponse;
6243
+ /**
6244
+ * Rate limit exceeded
5465
6245
  */
5466
- 400: ErrorResponse;
6246
+ 429: ErrorResponse;
5467
6247
  /**
5468
- * Invalid or missing API key
6248
+ * Local receiving is unavailable
5469
6249
  */
5470
- 401: ErrorResponse;
6250
+ 503: ErrorResponse;
5471
6251
  };
5472
- type CreateEndpointError = CreateEndpointErrors[keyof CreateEndpointErrors];
5473
- type CreateEndpointResponses = {
6252
+ type PullWebhookEventError = PullWebhookEventErrors[keyof PullWebhookEventErrors];
6253
+ type PullWebhookEventResponses = {
5474
6254
  /**
5475
- * Endpoint created (or reactivated)
6255
+ * Delivery operation result
5476
6256
  */
5477
- 201: SuccessEnvelope & {
5478
- data?: Endpoint;
5479
- };
6257
+ 200: PullWebhookResponse;
5480
6258
  };
5481
- type CreateEndpointResponse = CreateEndpointResponses[keyof CreateEndpointResponses];
5482
- type DeleteEndpointData = {
5483
- body?: never;
6259
+ type PullWebhookEventResponse = PullWebhookEventResponses[keyof PullWebhookEventResponses];
6260
+ type CompleteWebhookEventData = {
6261
+ body: CompleteWebhookInput;
5484
6262
  path: {
5485
6263
  /**
5486
6264
  * Resource UUID
@@ -5488,9 +6266,9 @@ type DeleteEndpointData = {
5488
6266
  id: string;
5489
6267
  };
5490
6268
  query?: never;
5491
- url: '/endpoints/{id}';
6269
+ url: '/endpoints/{id}/complete';
5492
6270
  };
5493
- type DeleteEndpointErrors = {
6271
+ type CompleteWebhookEventErrors = {
5494
6272
  /**
5495
6273
  * Invalid request parameters
5496
6274
  */
@@ -5499,25 +6277,45 @@ type DeleteEndpointErrors = {
5499
6277
  * Invalid or missing API key
5500
6278
  */
5501
6279
  401: ErrorResponse;
6280
+ /**
6281
+ * Authenticated caller lacks permission for the operation
6282
+ */
6283
+ 403: ErrorResponse;
5502
6284
  /**
5503
6285
  * Resource not found
5504
6286
  */
5505
6287
  404: ErrorResponse;
6288
+ /**
6289
+ * Request was canceled
6290
+ */
6291
+ 408: ErrorResponse;
6292
+ /**
6293
+ * The request conflicts with the current state of the resource
6294
+ */
6295
+ 409: ErrorResponse;
6296
+ /**
6297
+ * Queued content is no longer available
6298
+ */
6299
+ 410: ErrorResponse;
6300
+ /**
6301
+ * Rate limit exceeded
6302
+ */
6303
+ 429: ErrorResponse;
6304
+ /**
6305
+ * Local receiving is unavailable
6306
+ */
6307
+ 503: ErrorResponse;
5506
6308
  };
5507
- type DeleteEndpointError = DeleteEndpointErrors[keyof DeleteEndpointErrors];
5508
- type DeleteEndpointResponses = {
6309
+ type CompleteWebhookEventError = CompleteWebhookEventErrors[keyof CompleteWebhookEventErrors];
6310
+ type CompleteWebhookEventResponses = {
5509
6311
  /**
5510
- * Resource deleted
6312
+ * Delivery operation result
5511
6313
  */
5512
- 200: SuccessEnvelope & {
5513
- data?: {
5514
- deleted: boolean;
5515
- };
5516
- };
6314
+ 200: CompleteWebhookResponse;
5517
6315
  };
5518
- type DeleteEndpointResponse = DeleteEndpointResponses[keyof DeleteEndpointResponses];
5519
- type UpdateEndpointData = {
5520
- body: UpdateEndpointInput;
6316
+ type CompleteWebhookEventResponse = CompleteWebhookEventResponses[keyof CompleteWebhookEventResponses];
6317
+ type TestEndpointData = {
6318
+ body?: never;
5521
6319
  path: {
5522
6320
  /**
5523
6321
  * Resource UUID
@@ -5525,9 +6323,9 @@ type UpdateEndpointData = {
5525
6323
  id: string;
5526
6324
  };
5527
6325
  query?: never;
5528
- url: '/endpoints/{id}';
6326
+ url: '/endpoints/{id}/test';
5529
6327
  };
5530
- type UpdateEndpointErrors = {
6328
+ type TestEndpointErrors = {
5531
6329
  /**
5532
6330
  * Invalid request parameters
5533
6331
  */
@@ -5540,19 +6338,23 @@ type UpdateEndpointErrors = {
5540
6338
  * Resource not found
5541
6339
  */
5542
6340
  404: ErrorResponse;
6341
+ /**
6342
+ * Rate limit exceeded
6343
+ */
6344
+ 429: ErrorResponse;
5543
6345
  };
5544
- type UpdateEndpointError = UpdateEndpointErrors[keyof UpdateEndpointErrors];
5545
- type UpdateEndpointResponses = {
6346
+ type TestEndpointError = TestEndpointErrors[keyof TestEndpointErrors];
6347
+ type TestEndpointResponses = {
5546
6348
  /**
5547
- * Updated endpoint
6349
+ * Test result
5548
6350
  */
5549
6351
  200: SuccessEnvelope & {
5550
- data?: Endpoint;
6352
+ data?: TestResult;
5551
6353
  };
5552
6354
  };
5553
- type UpdateEndpointResponse = UpdateEndpointResponses[keyof UpdateEndpointResponses];
5554
- type TestEndpointData = {
5555
- body?: never;
6355
+ type TestEndpointResponse = TestEndpointResponses[keyof TestEndpointResponses];
6356
+ type TestEndpointRulesData = {
6357
+ body: TestEndpointRulesInput;
5556
6358
  path: {
5557
6359
  /**
5558
6360
  * Resource UUID
@@ -5560,9 +6362,9 @@ type TestEndpointData = {
5560
6362
  id: string;
5561
6363
  };
5562
6364
  query?: never;
5563
- url: '/endpoints/{id}/test';
6365
+ url: '/endpoints/{id}/rules/test';
5564
6366
  };
5565
- type TestEndpointErrors = {
6367
+ type TestEndpointRulesErrors = {
5566
6368
  /**
5567
6369
  * Invalid request parameters
5568
6370
  */
@@ -5572,24 +6374,23 @@ type TestEndpointErrors = {
5572
6374
  */
5573
6375
  401: ErrorResponse;
5574
6376
  /**
5575
- * Resource not found
6377
+ * Endpoint or email not found. Both the endpoint id (path)
6378
+ * and `email_id` (body) must belong to the caller's org; the
6379
+ * endpoint must be active (not deleted).
6380
+ *
5576
6381
  */
5577
6382
  404: ErrorResponse;
5578
- /**
5579
- * Rate limit exceeded
5580
- */
5581
- 429: ErrorResponse;
5582
6383
  };
5583
- type TestEndpointError = TestEndpointErrors[keyof TestEndpointErrors];
5584
- type TestEndpointResponses = {
6384
+ type TestEndpointRulesError = TestEndpointRulesErrors[keyof TestEndpointRulesErrors];
6385
+ type TestEndpointRulesResponses = {
5585
6386
  /**
5586
- * Test result
6387
+ * Rule evaluation verdict
5587
6388
  */
5588
6389
  200: SuccessEnvelope & {
5589
- data?: TestResult;
6390
+ data?: TestEndpointRulesResult;
5590
6391
  };
5591
6392
  };
5592
- type TestEndpointResponse = TestEndpointResponses[keyof TestEndpointResponses];
6393
+ type TestEndpointRulesResponse = TestEndpointRulesResponses[keyof TestEndpointRulesResponses];
5593
6394
  type ListFiltersData = {
5594
6395
  body?: never;
5595
6396
  path?: never;
@@ -6454,6 +7255,28 @@ type SemanticSearchResponses = {
6454
7255
  meta: SemanticSearchMeta;
6455
7256
  };
6456
7257
  };
7258
+ type GetOutboundStatusData = {
7259
+ body?: never;
7260
+ path?: never;
7261
+ query?: never;
7262
+ url: '/outbound/status';
7263
+ };
7264
+ type GetOutboundStatusErrors = {
7265
+ /**
7266
+ * Invalid or missing API key
7267
+ */
7268
+ 401: ErrorResponse;
7269
+ };
7270
+ type GetOutboundStatusError = GetOutboundStatusErrors[keyof GetOutboundStatusErrors];
7271
+ type GetOutboundStatusResponses = {
7272
+ /**
7273
+ * Outbound readiness summary
7274
+ */
7275
+ 200: SuccessEnvelope & {
7276
+ data?: OutboundStatus;
7277
+ };
7278
+ };
7279
+ type GetOutboundStatusResponse = GetOutboundStatusResponses[keyof GetOutboundStatusResponses];
6457
7280
  type ListSentEmailsData = {
6458
7281
  body?: never;
6459
7282
  path?: never;
@@ -6561,6 +7384,145 @@ type GetSentEmailResponses = {
6561
7384
  };
6562
7385
  };
6563
7386
  type GetSentEmailResponse = GetSentEmailResponses[keyof GetSentEmailResponses];
7387
+ type RescheduleSentEmailData = {
7388
+ body: SentEmailRescheduleInput;
7389
+ path: {
7390
+ /**
7391
+ * Resource UUID
7392
+ */
7393
+ id: string;
7394
+ };
7395
+ query?: never;
7396
+ url: '/sent-emails/{id}';
7397
+ };
7398
+ type RescheduleSentEmailErrors = {
7399
+ /**
7400
+ * Invalid request parameters
7401
+ */
7402
+ 400: ErrorResponse;
7403
+ /**
7404
+ * Invalid or missing API key
7405
+ */
7406
+ 401: ErrorResponse;
7407
+ /**
7408
+ * Resource not found
7409
+ */
7410
+ 404: ErrorResponse;
7411
+ /**
7412
+ * The send exists but is no longer in `scheduled` status,
7413
+ * so it cannot be rescheduled. `error.details` carries the
7414
+ * row's `sent_email_id` and current `status`.
7415
+ *
7416
+ */
7417
+ 409: ErrorResponse;
7418
+ };
7419
+ type RescheduleSentEmailError = RescheduleSentEmailErrors[keyof RescheduleSentEmailErrors];
7420
+ type RescheduleSentEmailResponses = {
7421
+ /**
7422
+ * Rescheduled sent-email detail
7423
+ */
7424
+ 200: SuccessEnvelope & {
7425
+ data?: SentEmailDetail;
7426
+ };
7427
+ };
7428
+ type RescheduleSentEmailResponse = RescheduleSentEmailResponses[keyof RescheduleSentEmailResponses];
7429
+ type CancelSentEmailData = {
7430
+ body?: never;
7431
+ path: {
7432
+ /**
7433
+ * Resource UUID
7434
+ */
7435
+ id: string;
7436
+ };
7437
+ query?: never;
7438
+ url: '/sent-emails/{id}/cancel';
7439
+ };
7440
+ type CancelSentEmailErrors = {
7441
+ /**
7442
+ * Invalid request parameters
7443
+ */
7444
+ 400: ErrorResponse;
7445
+ /**
7446
+ * Invalid or missing API key
7447
+ */
7448
+ 401: ErrorResponse;
7449
+ /**
7450
+ * Resource not found
7451
+ */
7452
+ 404: ErrorResponse;
7453
+ /**
7454
+ * The send exists but is no longer in `scheduled` status,
7455
+ * so it cannot be canceled. `error.details` carries the
7456
+ * row's `sent_email_id` and current `status`.
7457
+ *
7458
+ */
7459
+ 409: ErrorResponse;
7460
+ };
7461
+ type CancelSentEmailError = CancelSentEmailErrors[keyof CancelSentEmailErrors];
7462
+ type CancelSentEmailResponses = {
7463
+ /**
7464
+ * Canceled sent-email detail
7465
+ */
7466
+ 200: SuccessEnvelope & {
7467
+ data?: SentEmailDetail;
7468
+ };
7469
+ };
7470
+ type CancelSentEmailResponse = CancelSentEmailResponses[keyof CancelSentEmailResponses];
7471
+ type AwaitReplyData = {
7472
+ body?: never;
7473
+ path: {
7474
+ /**
7475
+ * Resource UUID
7476
+ */
7477
+ id: string;
7478
+ };
7479
+ query?: {
7480
+ /**
7481
+ * When true, long-poll up to `wait_timeout_ms` for the
7482
+ * first reply to arrive instead of returning immediately.
7483
+ * Mirrors send-mail's server-side `wait` semantics. The
7484
+ * server accepts only the literal strings `true` / `false`
7485
+ * (standard boolean query serialization); omitted means
7486
+ * no wait.
7487
+ *
7488
+ */
7489
+ wait?: boolean;
7490
+ /**
7491
+ * Maximum time to hold the request when `wait=true`.
7492
+ * Server default is 10000. NOT given an OpenAPI `default`
7493
+ * on purpose, matching the `/emails` `wait` parameter: a
7494
+ * default makes some generators send the value on every
7495
+ * call.
7496
+ *
7497
+ */
7498
+ wait_timeout_ms?: number;
7499
+ };
7500
+ url: '/sent-emails/{id}/reply';
7501
+ };
7502
+ type AwaitReplyErrors = {
7503
+ /**
7504
+ * Invalid request parameters
7505
+ */
7506
+ 400: ErrorResponse;
7507
+ /**
7508
+ * Invalid or missing API key
7509
+ */
7510
+ 401: ErrorResponse;
7511
+ /**
7512
+ * Resource not found
7513
+ */
7514
+ 404: ErrorResponse;
7515
+ };
7516
+ type AwaitReplyError = AwaitReplyErrors[keyof AwaitReplyErrors];
7517
+ type AwaitReplyResponses = {
7518
+ /**
7519
+ * Reply status for the send (reply may be null)
7520
+ */
7521
+ 200: SuccessEnvelope & {
7522
+ data?: AwaitReplyResult;
7523
+ };
7524
+ };
7525
+ type AwaitReplyResponse = AwaitReplyResponses[keyof AwaitReplyResponses];
6564
7526
  type GetThreadData = {
6565
7527
  body?: never;
6566
7528
  path: {
@@ -8621,7 +9583,7 @@ type GetAgentResponses = {
8621
9583
  };
8622
9584
  type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
8623
9585
  declare namespace sdk_gen_d_exports {
8624
- export { Options, addDomain, cliLogout, createAgentAccount, createAgentClaimLink, createChallenge, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
9586
+ export { Options, addDomain, awaitReply, cancelSentEmail, checkDomainDns, cliLogout, completeWebhookEvent, createAgentAccount, createAgentClaimLink, createChallenge, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadEmailAttachmentPart, downloadRawEmail, downloadSentAttachmentPart, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getOutboundStatus, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, payChallenge, pollCliLogin, publishAgent, pullWebhookEvent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, rescheduleSentEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testEndpointRules, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
8625
9587
  }
8626
9588
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
8627
9589
  /**
@@ -8868,6 +9830,27 @@ declare const updateDomain: <ThrowOnError extends boolean = false>(options: Opti
8868
9830
  *
8869
9831
  */
8870
9832
  declare const verifyDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyDomainData, ThrowOnError>) => RequestResult<VerifyDomainResponses, VerifyDomainErrors, ThrowOnError, "fields">;
9833
+ /**
9834
+ * Run an on-demand DNS health check
9835
+ *
9836
+ * Re-checks the domain's DNS records and persists the result as
9837
+ * the domain's current DNS health state. This is the on-demand
9838
+ * counterpart of the scheduled background checker: the response
9839
+ * mirrors what the checker records, broken down per scope
9840
+ * (`ownership`, `inbound`, `outbound`) with the exact records
9841
+ * inspected and each record's individual status.
9842
+ *
9843
+ * Unlike /domains/{id}/verify, this call never promotes an
9844
+ * unverified domain; it only re-evaluates and records health for
9845
+ * an existing claim. Managed (Primitive-operated) domains are
9846
+ * rejected with a validation error because their DNS is not
9847
+ * customer-published.
9848
+ *
9849
+ * Rate limited per organization; a `Retry-After` header
9850
+ * accompanies 429 responses.
9851
+ *
9852
+ */
9853
+ declare const checkDomainDns: <ThrowOnError extends boolean = false>(options: Options<CheckDomainDnsData, ThrowOnError>) => RequestResult<CheckDomainDnsResponses, CheckDomainDnsErrors, ThrowOnError, "fields">;
8871
9854
  /**
8872
9855
  * Download domain DNS zone file
8873
9856
  *
@@ -8980,6 +9963,35 @@ declare const downloadRawEmail: <ThrowOnError extends boolean = false>(options:
8980
9963
  *
8981
9964
  */
8982
9965
  declare const downloadAttachments: <ThrowOnError extends boolean = false>(options: Options<DownloadAttachmentsData, ThrowOnError>) => RequestResult<DownloadAttachmentsResponses, DownloadAttachmentsErrors, ThrowOnError, "fields">;
9966
+ /**
9967
+ * Download one inbound email attachment
9968
+ *
9969
+ * Pending service release. This contract does not establish live availability.
9970
+ * Downloads the original bytes of one ordinary email attachment, selected by
9971
+ * its metadata `part_index`, not its position in an attachments array. Refresh
9972
+ * the email detail after `attachment_changed` before choosing an index again.
9973
+ * Uses bearer authentication only; signed raw-email download tokens are not accepted.
9974
+ * A paired-agent credential may read only a message addressed to its claimed address.
9975
+ * Function credentials are denied. Other bearer credentials retain their
9976
+ * existing email access boundaries. This endpoint serves email bytes only.
9977
+ *
9978
+ */
9979
+ declare const downloadEmailAttachmentPart: <ThrowOnError extends boolean = false>(options: Options<DownloadEmailAttachmentPartData, ThrowOnError>) => RequestResult<DownloadEmailAttachmentPartResponses, DownloadEmailAttachmentPartErrors, ThrowOnError, "fields">;
9980
+ /**
9981
+ * Download one sent email attachment
9982
+ *
9983
+ * Pending service release. This contract does not establish live availability.
9984
+ * Downloads the original bytes of one ordinary email attachment, selected by
9985
+ * its metadata `part_index`, not its position in an attachments array. Refresh
9986
+ * the email detail after `attachment_changed` before choosing an index again.
9987
+ * Uses bearer authentication only; signed raw-email download tokens are not accepted.
9988
+ * A paired-agent credential may read only mail sent from its claimed address.
9989
+ * Receiving a copy does not authorize downloading another sender's sent content.
9990
+ * Function credentials are denied. Other bearer credentials retain their
9991
+ * existing email access boundaries. This endpoint serves email bytes only.
9992
+ *
9993
+ */
9994
+ declare const downloadSentAttachmentPart: <ThrowOnError extends boolean = false>(options: Options<DownloadSentAttachmentPartData, ThrowOnError>) => RequestResult<DownloadSentAttachmentPartResponses, DownloadSentAttachmentPartErrors, ThrowOnError, "fields">;
8983
9995
  /**
8984
9996
  * Reply to an inbound email
8985
9997
  *
@@ -9078,6 +10090,8 @@ declare const listEndpoints: <ThrowOnError extends boolean = false>(options?: Op
9078
10090
  * it via `POST /endpoints/{id}/test` to confirm your verifier
9079
10091
  * accepts the signature.
9080
10092
  *
10093
+ *
10094
+ * For local receiving, use kind=pull and a stable name, without url, function_id or domain_id. Named creation resumes the same active destination; omitted filters preserve its selection, while conflicting supplied configuration returns 409. New unfiltered destinations receive all subsequently ready eligible event types. Pull destinations do not occupy HTTP routing slots. Signing-secret setup and a test HTTP delivery are not required for pull receiving.
9081
10095
  */
9082
10096
  declare const createEndpoint: <ThrowOnError extends boolean = false>(options: Options<CreateEndpointData, ThrowOnError>) => RequestResult<CreateEndpointResponses, CreateEndpointErrors, ThrowOnError, "fields">;
9083
10097
  /**
@@ -9095,8 +10109,22 @@ declare const deleteEndpoint: <ThrowOnError extends boolean = false>(options: Op
9095
10109
  * endpoint is deactivated and a new one is created (or an existing
9096
10110
  * deactivated endpoint with the new URL is reactivated).
9097
10111
  *
10112
+ *
10113
+ * Pull destinations cannot be assigned a URL, function or recipient-routing domain. Existing endpoint deletion disconnects the destination; creating a new destination does not backfill historical events.
9098
10114
  */
9099
10115
  declare const updateEndpoint: <ThrowOnError extends boolean = false>(options: Options<UpdateEndpointData, ThrowOnError>) => RequestResult<UpdateEndpointResponses, UpdateEndpointErrors, ThrowOnError, "fields">;
10116
+ /**
10117
+ * Receive a pending webhook event without a public endpoint
10118
+ *
10119
+ * Wait up to 30 seconds for one existing event. The body string preserves the exact webhook serialization; headers and canonical occurrence/type metadata travel alongside it. A fixed lease protects the attempt while a short handler accepts input. Retry may redeliver an occurrence: deduplicate event_id. Empty delivery means no offer now, not proof all input was delivered; inspect backlog and persistent gap_count/last_gap_reason. Queue retention is 24 hours and does not extend source-content retention. Disconnecting preserves pending work. Same named destination shares consumption; different destinations get independent copies.
10120
+ */
10121
+ declare const pullWebhookEvent: <ThrowOnError extends boolean = false>(options: Options<PullWebhookEventData, ThrowOnError>) => RequestResult<PullWebhookEventResponses, PullWebhookEventErrors, ThrowOnError, "fields">;
10122
+ /**
10123
+ * Report the outcome of a local webhook delivery attempt
10124
+ *
10125
+ * Report normalized handling evidence for the queue, attempt and lease. Required JSON fields: queue_id, delivery_id, lease_token, mode, duration_ms. For mode=exec include exit_code; stdout includes write_succeeded; http includes status_code and optional transport_error, error_code, confirmed. Supply this discriminated request with --raw-body in the generated CLI. The server classifies success and retry. Duplicate identical completion is idempotent; a stale lease cannot finish a newer attempt. Exec success means durable input acceptance, not completion of agent reasoning. Only successful HTTP handling with recognized confirmation evidence can confirm content discard. Never send arbitrary handler output or HTTP response bodies.
10126
+ */
10127
+ declare const completeWebhookEvent: <ThrowOnError extends boolean = false>(options: Options<CompleteWebhookEventData, ThrowOnError>) => RequestResult<CompleteWebhookEventResponses, CompleteWebhookEventErrors, ThrowOnError, "fields">;
9100
10128
  /**
9101
10129
  * Send a test webhook
9102
10130
  *
@@ -9108,6 +10136,32 @@ declare const updateEndpoint: <ThrowOnError extends boolean = false>(options: Op
9108
10136
  *
9109
10137
  */
9110
10138
  declare const testEndpoint: <ThrowOnError extends boolean = false>(options: Options<TestEndpointData, ThrowOnError>) => RequestResult<TestEndpointResponses, TestEndpointErrors, ThrowOnError, "fields">;
10139
+ /**
10140
+ * Dry-run endpoint rules against a received email
10141
+ *
10142
+ * Evaluates the endpoint's filtering rules against an
10143
+ * already-received email WITHOUT delivering anything. The same
10144
+ * shared matcher the live delivery paths use produces the
10145
+ * verdict, so the response explains exactly why a webhook fired
10146
+ * or was suppressed for that message.
10147
+ *
10148
+ * When delivery would be suppressed, `rule` names the failing
10149
+ * rule and `reason` carries a human-readable explanation; both
10150
+ * are null when the message matches. `evaluated` echoes the
10151
+ * message metadata the matcher compared (size, attachments, and
10152
+ * the authenticated From identity versus the raw envelope
10153
+ * sender), so a surprising verdict can be traced to its inputs.
10154
+ *
10155
+ * Two independent gates are surfaced separately:
10156
+ * `subscribed_to_event` reports the endpoint's event-type
10157
+ * subscription (checked before message matching), and
10158
+ * `rules_valid` reports whether the stored rules blob parsed at
10159
+ * all. Delivery fails OPEN on an invalid blob (the message is
10160
+ * delivered as if unfiltered), so `rules_valid: false` exposes a
10161
+ * misconfiguration that is otherwise silent.
10162
+ *
10163
+ */
10164
+ declare const testEndpointRules: <ThrowOnError extends boolean = false>(options: Options<TestEndpointRulesData, ThrowOnError>) => RequestResult<TestEndpointRulesResponses, TestEndpointRulesErrors, ThrowOnError, "fields">;
9111
10165
  /**
9112
10166
  * List filter rules
9113
10167
  *
@@ -9338,12 +10392,28 @@ declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options
9338
10392
  * Requires the Pro plan and the `semantic_search_enabled`
9339
10393
  * entitlement; callers without them receive `403`.
9340
10394
  *
9341
- * Host routing: this operation is served only by the search host
9342
- * (`https://api.primitive.dev/v1`). The typed SDKs route it there
9343
- * automatically.
9344
- *
9345
10395
  */
9346
10396
  declare const semanticSearch: <ThrowOnError extends boolean = false>(options: Options<SemanticSearchData, ThrowOnError>) => RequestResult<SemanticSearchResponses, SemanticSearchErrors, ThrowOnError, "fields">;
10397
+ /**
10398
+ * Get outbound sending readiness
10399
+ *
10400
+ * The "what can I send From?" bootstrap, the outbound mirror of
10401
+ * /inbox/status. Returns per-domain sending readiness for every
10402
+ * domain in the caller's org, plus the flat `sendable_domains`
10403
+ * list of From-domains the org may send from right now. That
10404
+ * list is the same set echoed in a `cannot_send_from_domain`
10405
+ * error's details, so orienting here before a send and
10406
+ * recovering from that error use identical data.
10407
+ *
10408
+ * Each domain's `status` collapses the sending prerequisites
10409
+ * into one actionable state: `sendable`, `pending_ownership`
10410
+ * (ownership TXT not verified), `pending_outbound_dns`
10411
+ * (SPF/DKIM/DMARC not verified), or `inactive` (domain
10412
+ * deactivated). `next_actions` lists concrete remediation steps,
10413
+ * each with a suggested CLI command where one exists.
10414
+ *
10415
+ */
10416
+ declare const getOutboundStatus: <ThrowOnError extends boolean = false>(options?: Options<GetOutboundStatusData, ThrowOnError>) => RequestResult<GetOutboundStatusResponses, GetOutboundStatusErrors, ThrowOnError, "fields">;
9347
10417
  /**
9348
10418
  * List outbound sent emails
9349
10419
  *
@@ -9379,6 +10449,65 @@ declare const listSentEmails: <ThrowOnError extends boolean = false>(options?: O
9379
10449
  *
9380
10450
  */
9381
10451
  declare const getSentEmail: <ThrowOnError extends boolean = false>(options: Options<GetSentEmailData, ThrowOnError>) => RequestResult<GetSentEmailResponses, GetSentEmailErrors, ThrowOnError, "fields">;
10452
+ /**
10453
+ * Reschedule a scheduled send
10454
+ *
10455
+ * Moves a STILL-SCHEDULED send (status `scheduled`) to a new
10456
+ * execution time. The new `scheduled_at` must be in the future
10457
+ * and at most 30 days out, the same bounds as the create-time
10458
+ * field on /send-mail.
10459
+ *
10460
+ * The update is a compare-and-swap on `status = 'scheduled'`:
10461
+ * once the scheduler has claimed the row for execution, or it
10462
+ * was already canceled or executed, the update loses and the
10463
+ * call returns a 409 `not_scheduled` conflict naming the row's
10464
+ * current status. A due send can therefore never be moved out
10465
+ * from under an in-progress execution.
10466
+ *
10467
+ * Returns the full updated sent-email record on success.
10468
+ *
10469
+ */
10470
+ declare const rescheduleSentEmail: <ThrowOnError extends boolean = false>(options: Options<RescheduleSentEmailData, ThrowOnError>) => RequestResult<RescheduleSentEmailResponses, RescheduleSentEmailErrors, ThrowOnError, "fields">;
10471
+ /**
10472
+ * Cancel a scheduled send
10473
+ *
10474
+ * Cancels a STILL-SCHEDULED send (status `scheduled`), moving it
10475
+ * to the terminal `canceled` status. Nothing is dispatched and
10476
+ * the row is kept for historical lookup with `canceled_at` set.
10477
+ *
10478
+ * Uses the same compare-and-swap guard as reschedule: once the
10479
+ * scheduler has claimed the row for execution, or it was already
10480
+ * canceled or executed, the call returns a 409 `not_scheduled`
10481
+ * conflict naming the row's current status. Canceling can
10482
+ * therefore never race an in-progress execution; a send that
10483
+ * reports `canceled` was never handed to the delivery path.
10484
+ *
10485
+ * Returns the full updated sent-email record on success.
10486
+ *
10487
+ */
10488
+ declare const cancelSentEmail: <ThrowOnError extends boolean = false>(options: Options<CancelSentEmailData, ThrowOnError>) => RequestResult<CancelSentEmailResponses, CancelSentEmailErrors, ThrowOnError, "fields">;
10489
+ /**
10490
+ * Get (or wait for) the reply to a sent email
10491
+ *
10492
+ * Returns the first threaded inbound reply to a send, keyed by
10493
+ * the inbound email's `reply_to_sent_email_id`. This is the
10494
+ * canonical "did a reply arrive for this send?" call: after
10495
+ * /send-mail, poll (or long-poll) here instead of hand-rolling
10496
+ * an /emails/search loop.
10497
+ *
10498
+ * By default the call returns immediately with `reply: null`
10499
+ * when nothing has arrived yet. Set `wait=true` to long-poll:
10500
+ * the server holds the request up to `wait_timeout_ms`
10501
+ * (default 10000, max 30000), returning as soon as the first
10502
+ * reply lands. On a wait that elapses with no reply, the
10503
+ * response has `reply: null` and `timed_out: true`.
10504
+ *
10505
+ * The reply object is compact (headers plus bodies); fetch
10506
+ * `/emails/{id}` with `reply.id` for the fully parsed record,
10507
+ * or `/threads/{thread_id}` for the whole back-and-forth.
10508
+ *
10509
+ */
10510
+ declare const awaitReply: <ThrowOnError extends boolean = false>(options: Options<AwaitReplyData, ThrowOnError>) => RequestResult<AwaitReplyResponses, AwaitReplyErrors, ThrowOnError, "fields">;
9382
10511
  /**
9383
10512
  * Get a conversation thread by id
9384
10513
  *
@@ -10104,6 +11233,15 @@ interface SendInput {
10104
11233
  payloadAttachments?: SendPayloadReference[];
10105
11234
  wait?: boolean;
10106
11235
  waitTimeoutMs?: number;
11236
+ /**
11237
+ * Optional future execution time (ISO 8601). When set, the send is recorded
11238
+ * with status `scheduled` and executed at the requested time instead of
11239
+ * immediately. Server-enforced bounds: strictly in the future, at most 30
11240
+ * days out. Incompatible with `wait`, `attachments`, and
11241
+ * `payloadAttachments`. Reschedule via PATCH /sent-emails/{id}; cancel via
11242
+ * POST /sent-emails/{id}/cancel.
11243
+ */
11244
+ scheduledAt?: string;
10107
11245
  }
10108
11246
  /**
10109
11247
  * Input for {@link PrimitiveClient.sendAttachment}: the normal send fields plus
@@ -10173,6 +11311,12 @@ interface ForwardInput {
10173
11311
  bodyText?: string;
10174
11312
  subject?: string;
10175
11313
  from?: string;
11314
+ /**
11315
+ * Optional future execution time (ISO 8601), forwarded through to the
11316
+ * underlying send. Same semantics and server-enforced bounds as
11317
+ * {@link SendInput.scheduledAt}.
11318
+ */
11319
+ scheduledAt?: string;
10176
11320
  }
10177
11321
  interface SendResult {
10178
11322
  id: string;
@@ -10198,6 +11342,11 @@ interface SendResult {
10198
11342
  deliveryStatus?: SendMailResult["delivery_status"];
10199
11343
  smtpResponseCode?: number | null;
10200
11344
  smtpResponseText?: string;
11345
+ /**
11346
+ * Echoed requested execution time on a `scheduled` response (ISO 8601).
11347
+ * Absent on immediate sends.
11348
+ */
11349
+ scheduledAt?: string;
10201
11350
  }
10202
11351
  /**
10203
11352
  * Page of semantic-search results plus pagination meta. Returned by
@@ -10241,6 +11390,13 @@ interface MemorySearchResponse {
10241
11390
  meta: PaginationMeta;
10242
11391
  }
10243
11392
  type PrimitiveClientOptions = PrimitiveApiClientOptions;
11393
+ /** Original attachment bytes and server-provided download metadata. */
11394
+ interface AttachmentPartDownload {
11395
+ bytes: Uint8Array;
11396
+ sha256: string | null;
11397
+ contentDisposition: string | null;
11398
+ cacheControl: string | null;
11399
+ }
10244
11400
  /**
10245
11401
  * Agent-account operations, grouped under `client.agent`.
10246
11402
  *
@@ -10381,6 +11537,11 @@ declare class PrimitiveClient extends PrimitiveApiClient {
10381
11537
  /** Durable JSON key-value state for agents and Functions. */
10382
11538
  readonly memories: MemoriesResource;
10383
11539
  constructor(options?: PrimitiveClientOptions);
11540
+ /** Pending service release. Use the attachment metadata index, not its array offset. */
11541
+ downloadEmailAttachmentPart(id: string, partIndex: number, options?: RequestOptions): Promise<AttachmentPartDownload>;
11542
+ /** Pending service release. Sent content requires access to the sending identity. */
11543
+ downloadSentAttachmentPart(id: string, partIndex: number, options?: RequestOptions): Promise<AttachmentPartDownload>;
11544
+ private downloadAttachmentPart;
10384
11545
  send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
10385
11546
  /**
10386
11547
  * Send an attachment of any size in one call. Small attachments are delivered
@@ -10452,4 +11613,4 @@ interface CreatedAgent {
10452
11613
  */
10453
11614
  declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
10454
11615
  //#endregion
10455
- export { createFunctionSecret as $, DeleteOrgSecretData as $a, GetSpendPolicyResponses as $c, PollCliLoginError as $d, ResendCliSignupVerificationInput as $f, VerifiedDomain as $g, UpdateDomainData as $h, CreateWakeScheduleError as $i, ListDeliveriesResponses as $l, StartCliSignupData as $m, verifyAgentSignup as $n, EmailAuth as $o, SendPermissionRule as $p, CreateEmailChallengeErrors as $r, GetEmailData as $s, listFunctions as $t, ListRegistryAgentsResponses as $u, client as A, X402EmailChallengeDetails as A_, DeleteEndpointResponse as Aa, GetOrgRoutingTopologyError as Ac, ListWakeSchedulesData as Ad, ReplayDeliveryErrors as Af, UpdateRouteError as Ag, TestFunctionResponse as Ah, CreateOrgSecretErrors as Ai, IdempotencyKey as Al, SimulateRouteErrors as Am, setFunctionSecret as An, DiscardEmailContentResponse as Ao, SemanticSearchCoverage as Ap, CliSignupVerifyResult as Ar, FunctionTestRunTrace as As, getFunctionTestRunTrace as At, ListFunctionSecretsResponses as Au, PrimitiveApiError as B, Config as B_, DeleteFunctionResponse as Ba, GetSendPermissionsError as Bc, NumericString as Bd, ReplyToEmailError as Bf, UpdateSpendPolicyResponses as Bg, UnpublishAgentResponses as Bh, CreateRouteData as Bi, InstallTemplateErrors as Bl, StartAgentClaimResponses as Bm, unpublishAgent as Bn, DownloadAttachmentsResponses as Bo, SemanticSearchSnippet as Bp, CreateAgentClaimLinkError as Br, GetAgentErrors as Bs, getTemplateInstall as Bt, ListOrgSecretsResponses as Bu, SendAttachment as C, WakeAuthorization as C_, DeleteEmailError as Ca, GetInboxStatusResponses as Cc, ListWakeAuthorizationsResponse as Cd, ReorderRoutesError as Cf, UpdateRegistryData as Cg, TestEndpointError as Ch, CreateFunctionSecretError as Ci, GetWakeScheduleResponse as Cl, SetOrgSecretError as Cm, runWakeSchedule as Cn, DeleteWakeScheduleResponses as Co, SearchEmailsResponse as Cp, CliLogoutErrors as Cr, FunctionTestRunDelivery as Cs, getAccount as Ct, ListFunctionLogsErrors as Cu, SendResult as D, X402Challenge as D_, DeleteEndpointData as Da, GetMemoryResponse as Dc, ListWakeDispatchesErrors as Dd, ReorderRoutesResponses as Df, UpdateRegistryResponse as Dg, TestFunctionData as Dh, CreateFunctionSecretResponses as Di, GetWebhookSecretErrors as Dl, SetOrgSecretResponses as Dm, semanticSearch as Dn, DiscardEmailContentData as Do, SearchMemoriesErrors as Dp, CliLogoutResult as Dr, FunctionTestRunReply as Ds, getEmail as Dt, ListFunctionSecretsError as Du, SendPayloadReference as E, WebhookSecret as E_, DeleteEmailResponses as Ea, GetMemoryErrors as Ec, ListWakeDispatchesError as Ed, ReorderRoutesResponse as Ef, UpdateRegistryInput as Eg, TestEndpointResponses as Eh, CreateFunctionSecretResponse as Ei, GetWebhookSecretError as El, SetOrgSecretResponse as Em, searchMemories as En, DiscardContentResult as Eo, SearchMemoriesError as Ep, CliLogoutResponses as Er, FunctionTestRunOutboundRequest as Es, getConversation as Et, ListFunctionSecretsData as Eu, verifyWebhookSignature as F, X402Receipt as F_, DeleteFilterResponse as Fa, GetRegistryError as Fc, MemoryKeyQuery as Fd, ReplayEmailWebhooksErrors as Ff, UpdateSpendPolicyData as Fg, ThreadMessage as Fh, CreateRegistryError as Fi, InboxStatusNextAction as Fl, StartAgentClaimData as Fm, startAgentSignup as Fn, DomainVerifyResult as Fo, SemanticSearchInput as Fp, CreateAgentAccountErrors as Fr, GetAccountErrors as Fs, getSendPermissions as Ft, ListFunctionsResponses as Fu, cliLogout as G, ResponseStyle as G_, DeleteFunctionSecretResponse as Ga, GetSentEmailError as Gc, PayChallengeData as Gd, ResendAgentSignupVerificationError as Gf, UpdateWakeAuthorizationResponse as Gg, UnsetFunctionRouteResponses as Gh, CreateRouteResponses as Gi, ListDeclinedPaymentsError as Gl, StartAgentSignupResponse as Gm, updateFilter as Gn, DownloadDomainZoneFileResponses as Go, SendEmailResponses as Gp, CreateChallengeData as Gr, GetChallengeErrors as Gs, listDeclinedPayments as Gt, ListPayoutAddressesResponses as Gu, RequestOptions$1 as H, Options$1 as H_, DeleteFunctionSecretData as Ha, GetSendPermissionsResponse as Hc, OrgSecretWriteResult as Hd, ReplyToEmailResponse as Hf, UpdateWakeAuthorizationError as Hg, UnsetFunctionRouteError as Hh, CreateRouteErrors as Hi, InstallTemplateResponses as Hl, StartAgentSignupError as Hm, updateAccount as Hn, DownloadDomainZoneFileError as Ho, SendEmailError as Hp, CreateAgentClaimLinkInput as Hr, GetAgentResponses as Hs, getWakeSchedule as Ht, ListPayoutAddressesError as Hu, isMemoryJsonValue as I, X402SpendPolicy as I_, DeleteFilterResponses as Ia, GetRegistryErrors as Ic, MemoryResolvedScope as Id, ReplayEmailWebhooksResponse as If, UpdateSpendPolicyError as Ig, UnpublishAgentData as Ih, CreateRegistryErrors as Ii, InboxStatusRecentEmailSummary as Il, StartAgentClaimError as Im, startCliLogin as In, DownloadAttachmentsData as Io, SemanticSearchMeta as Ip, CreateAgentAccountInput as Ir, GetAccountResponse as Is, getSentEmail as It, ListOrgSecretsData as Iu, createChallenge as J, DeleteMemoryError as Ja, GetSentEmailResponses as Jc, PayChallengeInput as Jd, ResendAgentSignupVerificationResponse as Jf, UpdateWakeScheduleError as Jg, UpdateAccountError as Jh, CreateWakeAuthorizationErrors as Ji, ListDeclinedPaymentsResponses as Jl, StartCliLoginError as Jm, updateRoute as Jn, DownloadRawEmailErrors as Jo, SendMailPayloadRef as Jp, CreateChallengeInput as Jr, GetConversationData as Js, listEmails as Jt, ListRegistriesErrors as Ju, createAgentAccount as K, createConfig as K_, DeleteFunctionSecretResponses as Ka, GetSentEmailErrors as Kc, PayChallengeError as Kd, ResendAgentSignupVerificationErrors as Kf, UpdateWakeAuthorizationResponses as Kg, UnverifiedDomain as Kh, CreateWakeAuthorizationData as Ki, ListDeclinedPaymentsErrors as Kl, StartAgentSignupResponses as Km, updateFunction as Kn, DownloadRawEmailData as Ko, SendMailAttachment as Kp, CreateChallengeError as Kr, GetChallengeResponse as Ks, listDeliveries as Kt, ListRegistriesData as Ku, DEFAULT_API_BASE_URL as L, createClient as L_, DeleteFunctionData as La, GetRegistryResponse as Lc, MemoryScope as Ld, ReplayEmailWebhooksResponses as Lf, UpdateSpendPolicyErrors as Lg, UnpublishAgentError as Lh, CreateRegistryInput as Li, InstallTemplateBody as Ll, StartAgentClaimErrors as Lm, startCliSignup as Ln, DownloadAttachmentsError as Lo, SemanticSearchResponses as Lp, CreateAgentAccountResponse as Lr, GetAccountResponses as Ls, getSpendPolicy as Lt, ListOrgSecretsError as Lu, createPrimitiveClient as M, X402PaymentPayload as M_, DeleteFilterData as Ma, GetOrgRoutingTopologyResponse as Mc, ListWakeSchedulesErrors as Md, ReplayDeliveryResponses as Mf, UpdateRouteInput as Mg, TestInvocationResult as Mh, CreateOrgSecretResponse as Mi, InboxStatusDomain as Ml, SimulateRouteResponse as Mm, setOrgSecret as Mn, DkimSignature as Mo, SemanticSearchError as Mp, ConversationMessage as Mr, GateFix as Ms, getMemory as Mt, ListFunctionsError as Mu, PRIMITIVE_SIGNATURE_HEADER as N, X402PaymentRequirements as N_, DeleteFilterError as Na, GetOrgRoutingTopologyResponses as Nc, ListWakeSchedulesResponse as Nd, ReplayEmailWebhooksData as Nf, UpdateRouteResponse as Ng, TestResult as Nh, CreateOrgSecretResponses as Ni, InboxStatusEndpointSummary as Nl, SimulateRouteResponses as Nm, simulateRoute as Nn, Domain as No, SemanticSearchErrors as Np, CreateAgentAccountData as Nr, GetAccountData as Ns, getOrgRoutingTopology as Nt, ListFunctionsErrors as Nu, SendThreadInput as O, X402DeclinedPayment as O_, DeleteEndpointError as Oa, GetMemoryResponses as Oc, ListWakeDispatchesResponse as Od, ReplayDeliveryData as Of, UpdateRegistryResponses as Og, TestFunctionError as Oh, CreateOrgSecretData as Oi, GetWebhookSecretResponse as Ol, SimulateRouteData as Om, sendEmail as On, DiscardEmailContentError as Oo, SearchMemoriesResponse as Op, CliSignupResendResult as Or, FunctionTestRunSend as Os, getFunction as Ot, ListFunctionSecretsErrors as Ou, VerifyOptions as P, X402PayoutAddress as P_, DeleteFilterErrors as Pa, GetRegistryData as Pc, ListWakeSchedulesResponses as Pd, ReplayEmailWebhooksError as Pf, UpdateRouteResponses as Pg, Thread as Ph, CreateRegistryData as Pi, InboxStatusFunctionSummary as Pl, SimulateRouteResult as Pm, startAgentClaim as Pn, DomainDnsRecord as Po, SemanticSearchField as Pp, CreateAgentAccountError as Pr, GetAccountError as Ps, getRegistry as Pt, ListFunctionsResponse as Pu, createFunction as Q, DeleteMemoryResult as Qa, GetSpendPolicyResponse as Qc, PollCliLoginData as Qd, ResendCliSignupVerificationErrors as Qf, UpdateWakeScheduleResponses as Qg, UpdateAccountResponses as Qh, CreateWakeScheduleData as Qi, ListDeliveriesResponse as Ql, StartCliLoginResponses as Qm, verifyAgentClaim as Qn, EmailAttachment as Qo, SendPermissionManagedZone as Qp, CreateEmailChallengeError as Qr, GetConversationResponses as Qs, listFunctionSecrets as Qt, ListRegistryAgentsResponse as Qu, PrimitiveApiClient as R, Client as R_, DeleteFunctionError as Ra, GetRegistryResponses as Rc, MemoryScopeId as Rd, ReplayResult as Rf, UpdateSpendPolicyInput as Rg, UnpublishAgentErrors as Rh, CreateRegistryResponse as Ri, InstallTemplateData as Rl, StartAgentClaimInput as Rm, testEndpoint as Rn, DownloadAttachmentsErrors as Ro, SemanticSearchResult as Rp, CreateAgentAccountResponses as Rr, GetAgentData as Rs, getStorageStats as Rt, ListOrgSecretsErrors as Ru, SemanticSearchResponse as S, VerifyDomainResponses as S_, DeleteEmailData as Sa, GetInboxStatusResponse as Sc, ListWakeAuthorizationsErrors as Sd, ReorderRoutesData as Sf, UpdateFunctionResponses as Sg, TestEndpointData as Sh, CreateFunctionSecretData as Si, GetWakeScheduleErrors as Sl, SetOrgSecretData as Sm, rotateWebhookSecret as Sn, DeleteWakeScheduleResponse as So, SearchEmailsErrors as Sp, CliLogoutError as Sr, FunctionTestRun as Ss, downloadRawEmail as St, ListFunctionLogsError as Su, SendInput as T, WakeSchedule as T_, DeleteEmailResponse as Ta, GetMemoryError as Tc, ListWakeDispatchesData as Td, ReorderRoutesInput as Tf, UpdateRegistryErrors as Tg, TestEndpointResponse as Th, CreateFunctionSecretInput as Ti, GetWebhookSecretData as Tl, SetOrgSecretInput as Tm, searchEmails as Tn, DeliverySummary as To, SearchMemoriesData as Tp, CliLogoutResponse as Tr, FunctionTestRunInboundEmail as Ts, getChallenge as Tt, ListFunctionLogsResponses as Tu, createPrimitiveApiClient as U, RequestOptions$2 as U_, DeleteFunctionSecretError as Ua, GetSendPermissionsResponses as Uc, PaginationMeta as Ud, ReplyToEmailResponses as Uf, UpdateWakeAuthorizationErrors as Ug, UnsetFunctionRouteErrors as Uh, CreateRouteInput as Ui, Limit as Ul, StartAgentSignupErrors as Um, updateDomain as Un, DownloadDomainZoneFileErrors as Uo, SendEmailErrors as Up, CreateAgentClaimLinkResponse as Ur, GetChallengeData as Us, getWebhookSecret as Ut, ListPayoutAddressesErrors as Uu, PrimitiveApiErrorDetails as V, CreateClientConfig as V_, DeleteFunctionResponses as Va, GetSendPermissionsErrors as Vc, OrgSecretListItem as Vd, ReplyToEmailErrors as Vf, UpdateWakeAuthorizationData as Vg, UnsetFunctionRouteData as Vh, CreateRouteError as Vi, InstallTemplateResponse as Vl, StartAgentSignupData as Vm, unsetFunctionRoute as Vn, DownloadDomainZoneFileData as Vo, SendEmailData as Vp, CreateAgentClaimLinkErrors as Vr, GetAgentResponse as Vs, getThread as Vt, ListPayoutAddressesData as Vu, addDomain as W, RequestResult as W_, DeleteFunctionSecretErrors as Wa, GetSentEmailData as Wc, ParsedEmailData as Wd, ResendAgentSignupVerificationData as Wf, UpdateWakeAuthorizationInput as Wg, UnsetFunctionRouteResponse as Wh, CreateRouteResponse as Wi, ListDeclinedPaymentsData as Wl, StartAgentSignupInput as Wm, updateEndpoint as Wn, DownloadDomainZoneFileResponse as Wo, SendEmailResponse as Wp, CreateAgentClaimLinkResponses as Wr, GetChallengeError as Ws, installTemplate as Wt, ListPayoutAddressesResponse as Wu, createEndpoint as X, DeleteMemoryResponse as Xa, GetSpendPolicyError as Xc, PayChallengeResponses as Xd, ResendCliSignupVerificationData as Xf, UpdateWakeScheduleInput as Xg, UpdateAccountInput as Xh, CreateWakeAuthorizationResponse as Xi, ListDeliveriesError as Xl, StartCliLoginInput as Xm, updateWakeAuthorization as Xn, DownloadRawEmailResponses as Xo, SendPermissionAddress as Xp, CreateChallengeResponses as Xr, GetConversationErrors as Xs, listFilters as Xt, ListRegistriesResponses as Xu, createEmailChallenge as Y, DeleteMemoryErrors as Ya, GetSpendPolicyData as Yc, PayChallengeResponse as Yd, ResendAgentSignupVerificationResponses as Yf, UpdateWakeScheduleErrors as Yg, UpdateAccountErrors as Yh, CreateWakeAuthorizationInput as Yi, ListDeliveriesData as Yl, StartCliLoginErrors as Ym, updateSpendPolicy as Yn, DownloadRawEmailResponse as Yo, SendMailResult as Yp, CreateChallengeResponse as Yr, GetConversationError as Ys, listEndpoints as Yt, ListRegistriesResponse as Yu, createFilter as Z, DeleteMemoryResponses as Za, GetSpendPolicyErrors as Zc, PlanLimits as Zd, ResendCliSignupVerificationError as Zf, UpdateWakeScheduleResponse as Zg, UpdateAccountResponse as Zh, CreateWakeAuthorizationResponses as Zi, ListDeliveriesErrors as Zl, StartCliLoginResponse as Zm, updateWakeSchedule as Zn, EmailAddress as Zo, SendPermissionAnyRecipient as Zp, CreateEmailChallengeData as Zr, GetConversationResponse as Zs, listFunctionLogs as Zt, ListRegistryAgentsData as Zu, MemorySetInput as _, VerifyCliSignupResponses as __, DeleteDomainData as _a, GetFunctionTestRunTraceResponse as _c, ListTemplatesErrors as _d, RegisterPayoutAddressResponse as _f, UpdateFunctionData as _g, TemplateSecretGroup as _h, CreateFunctionErrors as _i, GetThreadErrors as _l, SetMemoryError as _m, replayEmailWebhooks as _n, DeleteWakeAuthorizationResponse as _o, RunWakeScheduleErrors as _p, AgentSignupStartResult as _r, FunctionRouteBody as _s, deleteWakeAuthorization as _t, ListFiltersError as _u, ForwardInput as a, VerifyAgentClaimResponses as a_, DecideRegistryRequestData as aa, GetFunctionError as ac, ListRoutesData as ad, PublishAgentError as af, UpdateEndpointData as ag, StorageStats as ah, CreateEndpointErrors as ai, GetTemplateData as al, SetFunctionRouteData as am, listRoutes as an, DeleteRegistryError as ao, ResolveRegistryHandleResponse as ap, AddDomainError as ar, EmailSearchMeta as as, decideRegistryRequest as at, ListEmailsData as au, ReplyInput as b, VerifyDomainErrors as b_, DeleteDomainResponse as ba, GetInboxStatusError as bc, ListWakeAuthorizationsData as bd, RegistryAgent as bf, UpdateFunctionInput as bg, TemplateVariable as bh, CreateFunctionResponses as bi, GetWakeScheduleData as bl, SetMemoryResponse as bm, resendCliSignupVerification as bn, DeleteWakeScheduleError as bo, SearchEmailsData as bp, CliLoginStartResult as br, FunctionSecretListItem as bs, downloadAttachments as bt, ListFiltersResponses as bu, InboxStreamOptions as c, VerifyAgentSignupErrors as c_, DecideRegistryRequestInput as ca, GetFunctionResponses as cc, ListRoutesResponse as cd, PublishAgentResponse as cf, UpdateEndpointInput as cg, TemplateInstall as ch, CreateEndpointResponses as ci, GetTemplateInstallData as cl, SetFunctionRouteResponse as cm, listWakeAuthorizations as cn, DeleteRegistryResponses as co, RotateWebhookSecretData as cp, AddDomainResponse as cr, EmailSummary as cs, deleteEmail as ct, ListEmailsResponse as cu, MemoryGetInput as d, VerifyAgentSignupResponses as d_, DefineAgentData as da, GetFunctionRoutingErrors as dc, ListSentEmailsError as dd, PublishPolicy as df, UpdateFilterData as dg, TemplateManifest as dh, CreateFilterErrors as di, GetTemplateInstallResponse as dl, SetFunctionSecretError as dm, payChallenge as dn, DeleteRouteErrors as do, RotateWebhookSecretResponse as dp, AgentAccountUpgradeHint as dr, ErrorResponse as ds, deleteFunction as dt, ListEndpointsError as du, VerifyAgentClaimData as e_, CreateWakeScheduleErrors as ea, GetEmailError as ec, ListRegistryRequestsData as ed, PollCliLoginErrors as ef, UpdateDomainError as eg, StartCliSignupError as eh, CreateEmailChallengeInput as ei, GetStorageStatsData as el, SendPermissionYourDomain as em, listOrgSecrets as en, DeleteOrgSecretError as eo, ResendCliSignupVerificationResponse as ep, verifyCliSignup as er, EmailDetail as es, createOrgSecret as et, ListDomainsData as eu, MemoryJsonValue as f, VerifyCliSignupData as f_, DefineAgentError as fa, GetFunctionRoutingResponse as fc, ListSentEmailsErrors as fd, RecipientRoute as ff, UpdateFilterError as fg, TemplateRegistryDetail as fh, CreateFilterInput as fi, GetTemplateInstallResponses as fl, SetFunctionSecretErrors as fm, pollCliLogin as fn, DeleteRouteResponse as fo, RotateWebhookSecretResponses as fp, AgentClaimLinkResult as fr, Filter as fs, deleteFunctionSecret as ft, ListEndpointsErrors as fu, MemorySearchResponse as g, VerifyCliSignupResponse as g_, DefineAgentResponses as ga, GetFunctionTestRunTraceErrors as gc, ListTemplatesError as gd, RegisterPayoutAddressInput as gf, UpdateFilterResponses as gg, TemplateSecret as gh, CreateFunctionError as gi, GetThreadError as gl, SetMemoryData as gm, replayDelivery as gn, DeleteWakeAuthorizationErrors as go, RunWakeScheduleError as gp, AgentSignupResendResult as gr, FunctionLogRow as gs, deleteRoute as gt, ListFiltersData as gu, MemorySearchInput as h, VerifyCliSignupInput as h_, DefineAgentResponse as ha, GetFunctionTestRunTraceError as hc, ListTemplatesData as hd, RegisterPayoutAddressErrors as hf, UpdateFilterResponse as hg, TemplateRegistrySummary as hh, CreateFunctionData as hi, GetThreadData as hl, SetFunctionSecretResponses as hm, reorderRoutes as hn, DeleteWakeAuthorizationError as ho, RunWakeScheduleData as hp, AgentOrgRef as hr, FunctionListItem as hs, deleteRegistry as ht, ListEnvelope as hu, CreatedAgent as i, VerifyAgentClaimResponse as i_, Cursor as ia, GetFunctionData as ic, ListRegistryRequestsResponses as id, PublishAgentData as if, UpdateDomainResponses as ig, StartCliSignupResponses as ih, CreateEndpointError as ii, GetStorageStatsResponses as il, SentEmailSummary as im, listRegistryRequests as in, DeleteRegistryData as io, ResolveRegistryHandleErrors as ip, AddDomainData as ir, EmailSearchHighlights as is, createWakeSchedule as it, ListDomainsResponses as iu, createAgent as j, X402NonceBinding as j_, DeleteEndpointResponses as ja, GetOrgRoutingTopologyErrors as jc, ListWakeSchedulesError as jd, ReplayDeliveryResponse as jf, UpdateRouteErrors as jg, TestFunctionResponses as jh, CreateOrgSecretInput as ji, InboxStatus as jl, SimulateRouteInput as jm, setMemory as jn, DiscardEmailContentResponses as jo, SemanticSearchData as jp, Conversation as jr, GateDenial as js, getInboxStatus as jt, ListFunctionsData as ju, WaitForNextOptions as k, X402EmailChallenge as k_, DeleteEndpointErrors as ka, GetOrgRoutingTopologyData as kc, ListWakeDispatchesResponses as kd, ReplayDeliveryError as kf, UpdateRouteData as kg, TestFunctionErrors as kh, CreateOrgSecretError as ki, GetWebhookSecretResponses as kl, SimulateRouteError as km, setFunctionRoute as kn, DiscardEmailContentErrors as ko, SearchMemoriesResponses as kp, CliSignupStartResult as kr, FunctionTestRunState as ks, getFunctionRouting as kt, ListFunctionSecretsResponse as ku, MemoriesResource as l, VerifyAgentSignupInput as l_, DecideRegistryRequestResponse as la, GetFunctionRoutingData as lc, ListRoutesResponses as ld, PublishAgentResponses as lf, UpdateEndpointResponse as lg, TemplateInstallState as lh, CreateFilterData as li, GetTemplateInstallError as ll, SetFunctionRouteResponses as lm, listWakeDispatches as ln, DeleteRouteData as lo, RotateWebhookSecretError as lp, AddDomainResponses as lr, EmailWebhookStatus as ls, deleteEndpoint as lt, ListEmailsResponses as lu, MemoryRecordWithValue as m, VerifyCliSignupErrors as m_, DefineAgentInput as ma, GetFunctionTestRunTraceData as mc, ListSentEmailsResponses as md, RegisterPayoutAddressError as mf, UpdateFilterInput as mg, TemplateRegistryStatus as mh, CreateFilterResponses as mi, GetTemplateResponses as ml, SetFunctionSecretResponse as mm, registerPayoutAddress as mn, DeleteWakeAuthorizationData as mo, RoutingTopology as mp, AgentClaimStartResult as mr, FunctionDetail as ms, deleteOrgSecret as mt, ListEndpointsResponses as mu, AgentResource as n, VerifyAgentClaimErrors as n_, CreateWakeScheduleResponse as na, GetEmailResponse as nc, ListRegistryRequestsErrors as nd, PollCliLoginResponse as nf, UpdateDomainInput as ng, StartCliSignupInput as nh, CreateEmailChallengeResponses as ni, GetStorageStatsErrors as nl, SentEmailDetail as nm, listRegistries as nn, DeleteOrgSecretResponse as no, ResolveRegistryHandleData as np, Account as nr, EmailSearchFacetBucket as ns, createRoute as nt, ListDomainsErrors as nu, InboundEmail as o, VerifyAgentSignupData as o_, DecideRegistryRequestError as oa, GetFunctionErrors as oc, ListRoutesError as od, PublishAgentErrors as of, UpdateEndpointError as og, SuccessEnvelope as oh, CreateEndpointInput as oi, GetTemplateError as ol, SetFunctionRouteError as om, listSentEmails as on, DeleteRegistryErrors as oo, ResolveRegistryHandleResponses as op, AddDomainErrors as or, EmailSearchResult as os, defineAgent as ot, ListEmailsError as ou, MemoryRecord as p, VerifyCliSignupError as p_, DefineAgentErrors as pa, GetFunctionRoutingResponses as pc, ListSentEmailsResponse as pd, RegisterPayoutAddressData as pf, UpdateFilterErrors as pg, TemplateRegistryPage as ph, CreateFilterResponse as pi, GetTemplateResponse as pl, SetFunctionSecretInput as pm, publishAgent as pn, DeleteRouteResponses as po, RouteEvaluatedEntry as pp, AgentClaimResult as pr, FunctionDeployStatus as ps, deleteMemory as pt, ListEndpointsResponse as pu, createAgentClaimLink as q, Auth as q_, DeleteMemoryData as qa, GetSentEmailResponse as qc, PayChallengeErrors as qd, ResendAgentSignupVerificationInput as qf, UpdateWakeScheduleData as qg, UpdateAccountData as qh, CreateWakeAuthorizationError as qi, ListDeclinedPaymentsResponse as ql, StartCliLoginData as qm, updateRegistry as qn, DownloadRawEmailError as qo, SendMailInput as qp, CreateChallengeErrors as qr, GetChallengeResponses as qs, listDomains as qt, ListRegistriesError as qu, CreateAgentOptions as r, VerifyAgentClaimInput as r_, CreateWakeScheduleResponses as ra, GetEmailResponses as rc, ListRegistryRequestsResponse as rd, PollCliLoginResponses as rf, UpdateDomainResponse as rg, StartCliSignupResponse as rh, CreateEndpointData as ri, GetStorageStatsResponse as rl, SentEmailStatus as rm, listRegistryAgents as rn, DeleteOrgSecretResponses as ro, ResolveRegistryHandleError as rp, AccountUpdated as rr, EmailSearchFacets as rs, createWakeAuthorization as rt, ListDomainsResponse as ru, InboxResource as s, VerifyAgentSignupError as s_, DecideRegistryRequestErrors as sa, GetFunctionResponse as sc, ListRoutesErrors as sd, PublishAgentInput as sf, UpdateEndpointErrors as sg, TemplateAuthor as sh, CreateEndpointResponse as si, GetTemplateErrors as sl, SetFunctionRouteErrors as sm, listTemplates as sn, DeleteRegistryResponse as so, ResourceId as sp, AddDomainInput as sr, EmailStatus as ss, deleteDomain as st, ListEmailsErrors as su, AccountResource as t, VerifyAgentClaimError as t_, CreateWakeScheduleInput as ta, GetEmailErrors as tc, ListRegistryRequestsError as td, PollCliLoginInput as tf, UpdateDomainErrors as tg, StartCliSignupErrors as th, CreateEmailChallengeResponse as ti, GetStorageStatsError as tl, SendPermissionsMeta as tm, listPayoutAddresses as tn, DeleteOrgSecretErrors as to, ResendCliSignupVerificationResponses as tp, verifyDomain as tr, EmailDetailReply as ts, createRegistry as tt, ListDomainsError as tu, MemoryDeleteInput as u, VerifyAgentSignupResponse as u_, DecideRegistryRequestResponses as ua, GetFunctionRoutingError as uc, ListSentEmailsData as ud, PublishAgentResult as uf, UpdateEndpointResponses as ug, TemplateInstallStatus as uh, CreateFilterError as ui, GetTemplateInstallErrors as ul, SetFunctionSecretData as um, listWakeSchedules as un, DeleteRouteError as uo, RotateWebhookSecretErrors as up, AgentAccountResult as ur, Endpoint as us, deleteFilter as ut, ListEndpointsData as uu, PrimitiveClient as v, VerifyDomainData as v_, DeleteDomainError as va, GetFunctionTestRunTraceResponses as vc, ListTemplatesResponse as vd, RegisterPayoutAddressResponses as vf, UpdateFunctionError as vg, TemplateSetup as vh, CreateFunctionInput as vi, GetThreadResponse as vl, SetMemoryErrors as vm, replyToEmail as vn, DeleteWakeAuthorizationResponses as vo, RunWakeScheduleResponse as vp, AgentSignupVerifyResult as vr, FunctionRouteResult as vs, deleteWakeSchedule as vt, ListFiltersErrors as vu, SendAttachmentInput as w, WakeDispatch as w_, DeleteEmailErrors as wa, GetMemoryData as wc, ListWakeAuthorizationsResponses as wd, ReorderRoutesErrors as wf, UpdateRegistryError as wg, TestEndpointErrors as wh, CreateFunctionSecretErrors as wi, GetWakeScheduleResponses as wl, SetOrgSecretErrors as wm, sdk_gen_d_exports as wn, DeliveryStatus as wo, SearchEmailsResponses as wp, CliLogoutInput as wr, FunctionTestRunDeliveryEndpoint as ws, getAgent as wt, ListFunctionLogsResponse as wu, RequestOptions as x, VerifyDomainResponse as x_, DeleteDomainResponses as xa, GetInboxStatusErrors as xc, ListWakeAuthorizationsError as xd, RegistryRequest as xf, UpdateFunctionResponse as xg, TemplateVariableValidation as xh, CreateFunctionResult as xi, GetWakeScheduleError as xl, SetMemoryResponses as xm, resolveRegistryHandle as xn, DeleteWakeScheduleErrors as xo, SearchEmailsError as xp, CliLogoutData as xr, FunctionSecretWriteResult as xs, downloadDomainZoneFile as xt, ListFunctionLogsData as xu, PrimitiveClientOptions as y, VerifyDomainError as y_, DeleteDomainErrors as ya, GetInboxStatusData as yc, ListTemplatesResponses as yd, Registry as yf, UpdateFunctionErrors as yg, TemplateSource as yh, CreateFunctionResponse as yi, GetThreadResponses as yl, SetMemoryInput as ym, resendAgentSignupVerification as yn, DeleteWakeScheduleData as yo, RunWakeScheduleResponses as yp, CliLoginPollResult as yr, FunctionRouting as ys, discardEmailContent as yt, ListFiltersResponse as yu, PrimitiveApiClientOptions as z, ClientOptions as z_, DeleteFunctionErrors as za, GetSendPermissionsData as zc, MemoryScopeQueryType as zd, ReplyToEmailData as zf, UpdateSpendPolicyResponse as zg, UnpublishAgentResponse as zh, CreateRegistryResponses as zi, InstallTemplateError as zl, StartAgentClaimResponse as zm, testFunction as zn, DownloadAttachmentsResponse as zo, SemanticSearchScoreBreakdown as zp, CreateAgentClaimLinkData as zr, GetAgentError as zs, getTemplate as zt, ListOrgSecretsResponse as zu };
11616
+ export { createChallenge as $, UpdateRegistryResponses as $_, DefineAgentResponse as $a, GetEmailResponse as $c, ListRegistryAgentsData as $d, PayChallengeResponse as $f, TestFunctionError as $g, StartAgentClaimData as $h, CreateFunctionData as $i, GetSpendPolicyErrors as $l, SemanticSearchMeta as $m, updateAccount as $n, DeleteWakeAuthorizationError as $o, ReplyToEmailErrors as $p, CliLogoutResponse as $r, EmailSearchFacetBucket as $s, listDeclinedPayments as $t, ListDeliveriesErrors as $u, X402DeclinedPayment as $v, WaitForNextOptions as A, UpdateEndpointData as A_, CreateWakeAuthorizationData as Aa, GetAccountData as Ac, ListFunctionSecretsErrors as Ad, ListWakeDispatchesResponse as Af, TemplateRegistryDetail as Ag, SetFunctionSecretErrors as Ah, CreateChallengeError as Ai, GetOrgRoutingTopologyResponses as Al, RouteEvaluatedEntry as Am, resendCliSignupVerification as An, DeleteFunctionSecretResponses as Ao, Registry as Ap, AttachmentPartIndex as Ar, DownloadDomainZoneFileErrors as As, getAccount as At, GetWebhookSecretResponse as Au, VerifyAgentClaimResponses as Av, PrimitiveApiClientOptions as B, UpdateFilterResponse as B_, CreateWakeScheduleResponse as Ba, GetChallengeData as Bc, ListOrgSecretsErrors as Bd, MemoryScopeId as Bf, TestEndpointData as Bg, SetOrgSecretData as Bh, CreateEmailChallengeResponses as Bi, GetRegistryResponses as Bl, SearchEmailsResponse as Bm, setFunctionSecret as Bn, DeleteOrgSecretResponse as Bo, ReplayDeliveryError as Bp, CancelSentEmailResponse as Br, DownloadRawEmailErrors as Bs, getOrgRoutingTopology as Bt, InstallTemplateData as Bu, VerifyCliSignupInput as Bv, SemanticSearchResponse as C, UpdateAccountResponses as C_, CreateRegistryResponses as Ca, FunctionTestRunOutboundRequest as Cc, ListFunctionLogsData as Cd, ListWakeAuthorizationsError as Cf, StorageStats as Cg, SetFunctionRouteData as Ch, CreateAgentClaimLinkData as Ci, GetMemoryErrors as Cl, ResolveRegistryHandleResponses as Cm, registerPayoutAddress as Cn, DeleteFunctionErrors as Co, RecipientRoute as Cp, AgentClaimLinkResult as Cr, DownloadAttachmentsData as Cs, deleteWakeSchedule as Ct, GetWakeScheduleError as Cu, UpdateWakeScheduleResponses as Cv, SendPayloadReference as D, UpdateDomainInput as D_, CreateRouteInput as Da, FunctionTestRunTrace as Dc, ListFunctionLogsResponses as Dd, ListWakeDispatchesData as Df, TemplateInstallState as Dg, SetFunctionRouteResponses as Dh, CreateAgentClaimLinkResponse as Di, GetOrgRoutingTopologyError as Dl, RotateWebhookSecretErrors as Dm, replyToEmail as Dn, DeleteFunctionSecretError as Do, RegisterPayoutAddressInput as Dp, AgentSignupResendResult as Dr, DownloadAttachmentsResponses as Ds, downloadEmailAttachmentPart as Dt, GetWebhookSecretData as Du, VerifyAgentClaimErrors as Dv, SendInput as E, UpdateDomainErrors as E_, CreateRouteErrors as Ea, FunctionTestRunState as Ec, ListFunctionLogsResponse as Ed, ListWakeAuthorizationsResponses as Ef, TemplateInstall as Eg, SetFunctionRouteResponse as Eh, CreateAgentClaimLinkInput as Ei, GetOrgRoutingTopologyData as El, RotateWebhookSecretError as Em, replayEmailWebhooks as En, DeleteFunctionSecretData as Eo, RegisterPayoutAddressErrors as Ep, AgentOrgRef as Er, DownloadAttachmentsResponse as Es, downloadDomainZoneFile as Et, GetWakeScheduleResponses as Eu, VerifyAgentClaimError as Ev, VerifyOptions as F, UpdateEndpointResponses as F_, CreateWakeAuthorizationResponses as Fa, GetAgentData as Fc, ListFunctionsErrors as Fd, ListWakeSchedulesResponse as Ff, TemplateSecretGroup as Fg, SetMemoryError as Fh, CreateEmailChallengeData as Fi, GetOutboundStatusResponses as Fl, RunWakeScheduleResponse as Fm, searchEmails as Fn, DeleteMemoryResponses as Fo, ReorderRoutesErrors as Fp, AwaitReplyResponses as Fr, DownloadEmailAttachmentPartErrors as Fs, getFunction as Ft, InboxStatusEndpointSummary as Fu, VerifyAgentSignupResponse as Fv, addDomain as G, UpdateFunctionInput as G_, DecideRegistryRequestErrors as Ga, GetConversationData as Gc, ListPayoutAddressesErrors as Gd, OutboundStatus as Gf, TestEndpointRulesData as Gg, SetOrgSecretResponses as Gh, CreateEndpointResponse as Gi, GetSendPermissionsResponses as Gl, SearchMemoriesResponse as Gm, startAgentSignup as Gn, DeleteRegistryResponse as Go, ReplayEmailWebhooksError as Gp, CheckDomainDnsResponse as Gr, DownloadSentAttachmentPartErrors as Gs, getSpendPolicy as Gt, Limit as Gu, VerifyDomainErrors as Gv, PrimitiveApiErrorDetails as H, UpdateFunctionData as H_, Cursor as Ha, GetChallengeErrors as Hc, ListOrgSecretsResponses as Hd, NumericString as Hf, TestEndpointErrors as Hg, SetOrgSecretErrors as Hh, CreateEndpointError as Hi, GetSendPermissionsError as Hl, SearchMemoriesData as Hm, setOrgSecret as Hn, DeleteRegistryData as Ho, ReplayDeliveryResponse as Hp, CheckDomainDnsData as Hr, DownloadRawEmailResponses as Hs, getRegistry as Ht, InstallTemplateErrors as Hu, VerifyCliSignupResponses as Hv, verifyWebhookSignature as I, UpdateFilterData as I_, CreateWakeScheduleData as Ia, GetAgentError as Ic, ListFunctionsResponse as Id, ListWakeSchedulesResponses as If, TemplateSetup as Ig, SetMemoryErrors as Ih, CreateEmailChallengeError as Ii, GetRegistryData as Il, RunWakeScheduleResponses as Im, searchMemories as In, DeleteMemoryResult as Io, ReorderRoutesInput as Ip, AwaitReplyResult as Ir, DownloadEmailAttachmentPartResponse as Is, getFunctionRouting as It, InboxStatusFunctionSummary as Iu, VerifyAgentSignupResponses as Iv, checkDomainDns as J, UpdateRegistryData as J_, DecideRegistryRequestResponses as Ja, GetConversationResponse as Jc, ListRegistriesData as Jd, ParsedEmailData as Jf, TestEndpointRulesInput as Jg, SimulateRouteErrors as Jh, CreateFilterError as Ji, GetSentEmailErrors as Jl, SemanticSearchData as Jm, testEndpoint as Jn, DeleteRouteError as Jo, ReplayEmailWebhooksResponses as Jp, CliLoginStartResult as Jr, EmailAddress as Js, getTemplateInstall as Jt, ListDeclinedPaymentsErrors as Ju, WakeAuthorization as Jv, awaitReply as K, UpdateFunctionResponse as K_, DecideRegistryRequestInput as Ka, GetConversationError as Kc, ListPayoutAddressesResponse as Kd, OutboundStatusDomain as Kf, TestEndpointRulesError as Kg, SimulateRouteData as Kh, CreateEndpointResponses as Ki, GetSentEmailData as Kl, SearchMemoriesResponses as Km, startCliLogin as Kn, DeleteRegistryResponses as Ko, ReplayEmailWebhooksErrors as Kp, CheckDomainDnsResponses as Kr, DownloadSentAttachmentPartResponse as Ks, getStorageStats as Kt, ListDeclinedPaymentsData as Ku, VerifyDomainResponse as Kv, isMemoryJsonValue as L, UpdateFilterError as L_, CreateWakeScheduleError as La, GetAgentErrors as Lc, ListFunctionsResponses as Ld, MemoryKeyQuery as Lf, TemplateSource as Lg, SetMemoryInput as Lh, CreateEmailChallengeErrors as Li, GetRegistryError as Ll, SearchEmailsData as Lm, semanticSearch as Ln, DeleteOrgSecretData as Lo, ReorderRoutesResponse as Lp, CancelSentEmailData as Lr, DownloadEmailAttachmentPartResponses as Ls, getFunctionTestRunTrace as Lt, InboxStatusNextAction as Lu, VerifyCliSignupData as Lv, createAgent as M, UpdateEndpointErrors as M_, CreateWakeAuthorizationErrors as Ma, GetAccountErrors as Mc, ListFunctionSecretsResponses as Md, ListWakeSchedulesData as Mf, TemplateRegistryStatus as Mg, SetFunctionSecretResponse as Mh, CreateChallengeInput as Mi, GetOutboundStatusError as Ml, RunWakeScheduleData as Mm, rotateWebhookSecret as Mn, DeleteMemoryError as Mo, RegistryRequest as Mp, AwaitReplyError as Mr, DownloadDomainZoneFileResponses as Ms, getChallenge as Mt, IdempotencyKey as Mu, VerifyAgentSignupError as Mv, createPrimitiveClient as N, UpdateEndpointInput as N_, CreateWakeAuthorizationInput as Na, GetAccountResponse as Nc, ListFunctionsData as Nd, ListWakeSchedulesError as Nf, TemplateRegistrySummary as Ng, SetFunctionSecretResponses as Nh, CreateChallengeResponse as Ni, GetOutboundStatusErrors as Nl, RunWakeScheduleError as Nm, runWakeSchedule as Nn, DeleteMemoryErrors as No, ReorderRoutesData as Np, AwaitReplyErrors as Nr, DownloadEmailAttachmentPartData as Ns, getConversation as Nt, InboxStatus as Nu, VerifyAgentSignupErrors as Nv, SendResult as O, UpdateDomainResponse as O_, CreateRouteResponse as Oa, GateDenial as Oc, ListFunctionSecretsData as Od, ListWakeDispatchesError as Of, TemplateInstallStatus as Og, SetFunctionSecretData as Oh, CreateAgentClaimLinkResponses as Oi, GetOrgRoutingTopologyErrors as Ol, RotateWebhookSecretResponse as Om, rescheduleSentEmail as On, DeleteFunctionSecretErrors as Oo, RegisterPayoutAddressResponse as Op, AgentSignupStartResult as Or, DownloadDomainZoneFileData as Os, downloadRawEmail as Ot, GetWebhookSecretError as Ou, VerifyAgentClaimInput as Ov, PRIMITIVE_SIGNATURE_HEADER as P, UpdateEndpointResponse as P_, CreateWakeAuthorizationResponse as Pa, GetAccountResponses as Pc, ListFunctionsError as Pd, ListWakeSchedulesErrors as Pf, TemplateSecret as Pg, SetMemoryData as Ph, CreateChallengeResponses as Pi, GetOutboundStatusResponse as Pl, RunWakeScheduleErrors as Pm, sdk_gen_d_exports as Pn, DeleteMemoryResponse as Po, ReorderRoutesError as Pp, AwaitReplyResponse as Pr, DownloadEmailAttachmentPartError as Ps, getEmail as Pt, InboxStatusDomain as Pu, VerifyAgentSignupInput as Pv, createAgentClaimLink as Q, UpdateRegistryResponse as Q_, DefineAgentInput as Qa, GetEmailErrors as Qc, ListRegistriesResponses as Qd, PayChallengeInput as Qf, TestFunctionData as Qg, SimulateRouteResult as Qh, CreateFilterResponses as Qi, GetSpendPolicyError as Ql, SemanticSearchInput as Qm, unsetFunctionRoute as Qn, DeleteWakeAuthorizationData as Qo, ReplyToEmailError as Qp, CliLogoutInput as Qr, EmailDetailReply as Qs, installTemplate as Qt, ListDeliveriesError as Qu, X402Challenge as Qv, DEFAULT_API_BASE_URL as R, UpdateFilterErrors as R_, CreateWakeScheduleErrors as Ra, GetAgentResponse as Rc, ListOrgSecretsData as Rd, MemoryResolvedScope as Rf, TemplateVariable as Rg, SetMemoryResponse as Rh, CreateEmailChallengeInput as Ri, GetRegistryErrors as Rl, SearchEmailsError as Rm, sendEmail as Rn, DeleteOrgSecretError as Ro, ReorderRoutesResponses as Rp, CancelSentEmailError as Rr, DownloadRawEmailData as Rs, getInboxStatus as Rt, InboxStatusRecentEmailSummary as Ru, VerifyCliSignupError as Rv, RequestOptions as S, UpdateAccountResponse as S_, CreateRegistryResponse as Sa, FunctionTestRunInboundEmail as Sc, ListFiltersResponses as Sd, ListWakeAuthorizationsData as Sf, StartCliSignupResponses as Sg, SentEmailSummary as Sh, CreateAgentAccountResponses as Si, GetMemoryError as Sl, ResolveRegistryHandleResponse as Sm, pullWebhookEvent as Sn, DeleteFunctionError as So, PullWebhookResponse as Sp, AgentAccountUpgradeHint as Sr, DomainVerifyResult as Ss, deleteWakeAuthorization as St, GetWakeScheduleData as Su, UpdateWakeScheduleResponse as Sv, SendAttachmentInput as T, UpdateDomainError as T_, CreateRouteError as Ta, FunctionTestRunSend as Tc, ListFunctionLogsErrors as Td, ListWakeAuthorizationsResponse as Tf, TemplateAuthor as Tg, SetFunctionRouteErrors as Th, CreateAgentClaimLinkErrors as Ti, GetMemoryResponses as Tl, RotateWebhookSecretData as Tm, replayDelivery as Tn, DeleteFunctionResponses as To, RegisterPayoutAddressError as Tp, AgentClaimStartResult as Tr, DownloadAttachmentsErrors as Ts, downloadAttachments as Tt, GetWakeScheduleResponse as Tu, VerifyAgentClaimData as Tv, RequestOptions$1 as U, UpdateFunctionError as U_, DecideRegistryRequestData as Ua, GetChallengeResponse as Uc, ListPayoutAddressesData as Ud, OrgSecretListItem as Uf, TestEndpointResponse as Ug, SetOrgSecretInput as Uh, CreateEndpointErrors as Ui, GetSendPermissionsErrors as Ul, SearchMemoriesError as Um, simulateRoute as Un, DeleteRegistryError as Uo, ReplayDeliveryResponses as Up, CheckDomainDnsError as Ur, DownloadSentAttachmentPartData as Us, getSendPermissions as Ut, InstallTemplateResponse as Uu, VerifyDomainData as Uv, PrimitiveApiError as V, UpdateFilterResponses as V_, CreateWakeScheduleResponses as Va, GetChallengeError as Vc, ListOrgSecretsResponse as Vd, MemoryScopeQueryType as Vf, TestEndpointError as Vg, SetOrgSecretError as Vh, CreateEndpointData as Vi, GetSendPermissionsData as Vl, SearchEmailsResponses as Vm, setMemory as Vn, DeleteOrgSecretResponses as Vo, ReplayDeliveryErrors as Vp, CancelSentEmailResponses as Vr, DownloadRawEmailResponse as Vs, getOutboundStatus as Vt, InstallTemplateError as Vu, VerifyCliSignupResponse as Vv, createPrimitiveApiClient as W, UpdateFunctionErrors as W_, DecideRegistryRequestError as Wa, GetChallengeResponses as Wc, ListPayoutAddressesError as Wd, OrgSecretWriteResult as Wf, TestEndpointResponses as Wg, SetOrgSecretResponse as Wh, CreateEndpointInput as Wi, GetSendPermissionsResponse as Wl, SearchMemoriesErrors as Wm, startAgentClaim as Wn, DeleteRegistryErrors as Wo, ReplayEmailWebhooksData as Wp, CheckDomainDnsErrors as Wr, DownloadSentAttachmentPartError as Ws, getSentEmail as Wt, InstallTemplateResponses as Wu, VerifyDomainError as Wv, completeWebhookEvent as X, UpdateRegistryErrors as X_, DefineAgentError as Xa, GetEmailData as Xc, ListRegistriesErrors as Xd, PayChallengeError as Xf, TestEndpointRulesResponses as Xg, SimulateRouteResponse as Xh, CreateFilterInput as Xi, GetSentEmailResponses as Xl, SemanticSearchErrors as Xm, testFunction as Xn, DeleteRouteResponse as Xo, ReplyEmail as Xp, CliLogoutError as Xr, EmailAuth as Xs, getWakeSchedule as Xt, ListDeclinedPaymentsResponses as Xu, WakeSchedule as Xv, cliLogout as Y, UpdateRegistryError as Y_, DefineAgentData as Ya, GetConversationResponses as Yc, ListRegistriesError as Yd, PayChallengeData as Yf, TestEndpointRulesResponse as Yg, SimulateRouteInput as Yh, CreateFilterErrors as Yi, GetSentEmailResponse as Yl, SemanticSearchError as Ym, testEndpointRules as Yn, DeleteRouteErrors as Yo, ReplayResult as Yp, CliLogoutData as Yr, EmailAttachment as Ys, getThread as Yt, ListDeclinedPaymentsResponse as Yu, WakeDispatch as Yv, createAgentAccount as Z, UpdateRegistryInput as Z_, DefineAgentErrors as Za, GetEmailError as Zc, ListRegistriesResponse as Zd, PayChallengeErrors as Zf, TestEndpointRulesResult as Zg, SimulateRouteResponses as Zh, CreateFilterResponse as Zi, GetSpendPolicyData as Zl, SemanticSearchField as Zm, unpublishAgent as Zn, DeleteRouteResponses as Zo, ReplyToEmailData as Zp, CliLogoutErrors as Zr, EmailDetail as Zs, getWebhookSecret as Zt, ListDeliveriesData as Zu, WebhookSecret as Zv, MemorySearchResponse as _, UnverifiedDomain as __, CreateOrgSecretResponses as _a, FunctionSecretListItem as _c, ListEnvelope as _d, ListTemplatesData as _f, StartCliSignupData as _g, SendPermissionYourDomain as _h, CreateAgentAccountData as _i, GetInboxStatusError as _l, ResendCliSignupVerificationResponse as _m, listWakeDispatches as _n, DeleteFilterError as _o, PullWebhookEventError as _p, AddDomainErrors as _r, Domain as _s, deleteFunctionSecret as _t, GetThreadData as _u, UpdateWakeAuthorizationResponses as _v, createConfig as _y, CreatedAgent as a, Thread as a_, CreateFunctionResult as aa, EmailSummary as ac, ListDomainsResponse as ad, ListRegistryRequestsResponse as af, StartAgentSignupData as ag, SendEmailError as ah, CompleteWebhookEventData as ai, GetFunctionResponses as al, RescheduleSentEmailResponse as am, listFunctionLogs as an, DeleteDomainResponses as ao, PollCliLoginInput as ap, updateRoute as ar, DeleteWakeScheduleErrors as as, createOrgSecret as at, GetStorageStatsResponse as au, UpdateRouteResponses as av, X402PayoutAddress as ay, PrimitiveClientOptions as b, UpdateAccountErrors as b_, CreateRegistryErrors as ba, FunctionTestRunDelivery as bc, ListFiltersErrors as bd, ListTemplatesResponse as bf, StartCliSignupInput as bg, SentEmailRescheduleInput as bh, CreateAgentAccountInput as bi, GetInboxStatusResponses as bl, ResolveRegistryHandleError as bm, pollCliLogin as bn, DeleteFilterResponses as bo, PullWebhookEventResponses as bp, AddDomainResponses as br, DomainDnsHealthStatus as bs, deleteRegistry as bt, GetThreadResponse as bu, UpdateWakeScheduleErrors as bv, InboxResource as c, UnpublishAgentError as c_, CreateFunctionSecretErrors as ca, ErrorResponse as cc, ListEmailsError as cd, ListRoutesError as cf, StartAgentSignupInput as cg, SendEmailResponses as ch, CompleteWebhookEventResponse as ci, GetFunctionRoutingErrors as cl, ResendAgentSignupVerificationError as cm, listOrgSecrets as cn, DeleteEmailErrors as co, PublishAgentData as cp, updateWakeSchedule as cr, DeliveryStatus as cs, createWakeAuthorization as ct, GetTemplateError as cu, UpdateSpendPolicyErrors as cv, createClient as cy, MemoryDeleteInput as d, UnpublishAgentResponses as d_, CreateFunctionSecretResponses as da, FunctionDetail as dc, ListEmailsResponses as dd, ListRoutesResponses as df, StartCliLoginData as dg, SendMailPayloadRef as dh, CompleteWebhookHttpInput as di, GetFunctionTestRunTraceData as dl, ResendAgentSignupVerificationResponse as dm, listRegistryAgents as dn, DeleteEndpointData as do, PublishAgentInput as dp, verifyCliSignup as dr, DiscardEmailContentData as ds, defineAgent as dt, GetTemplateInstallError as du, UpdateSpendPolicyResponses as dv, Config as dy, TestFunctionErrors as e_, CreateFunctionError as ea, EmailSearchFacets as ec, ListDeliveriesResponse as ed, ListRegistryAgentsResponse as ef, StartAgentClaimError as eg, SemanticSearchResponses as eh, CliLogoutResponses as ei, GetEmailResponses as el, ReplyToEmailResponse as em, listDeliveries as en, DefineAgentResponses as eo, PayChallengeResponses as ep, updateDomain as er, DeleteWakeAuthorizationErrors as es, createEmailChallenge as et, GetSpendPolicyResponse as eu, UpdateRouteData as ev, X402EmailChallenge as ey, MemoryGetInput as f, UnsetFunctionRouteData as f_, CreateOrgSecretData as fa, FunctionListItem as fc, ListEndpointsData as fd, ListSentEmailsData as ff, StartCliLoginError as fg, SendMailResult as fh, CompleteWebhookInput as fi, GetFunctionTestRunTraceError as fl, ResendAgentSignupVerificationResponses as fm, listRegistryRequests as fn, DeleteEndpointError as fo, PublishAgentResponse as fp, verifyDomain as fr, DiscardEmailContentError as fs, deleteDomain as ft, GetTemplateInstallErrors as fu, UpdateWakeAuthorizationData as fv, CreateClientConfig as fy, MemorySearchInput as g, UnsetFunctionRouteResponses as g_, CreateOrgSecretResponse as ga, FunctionRouting as gc, ListEndpointsResponses as gd, ListSentEmailsResponses as gf, StartCliLoginResponses as gg, SendPermissionRule as gh, ConversationMessage as gi, GetInboxStatusData as gl, ResendCliSignupVerificationInput as gm, listWakeAuthorizations as gn, DeleteFilterData as go, PullWebhookEventData as gp, AddDomainError as gr, DkimSignature as gs, deleteFunction as gt, GetTemplateResponses as gu, UpdateWakeAuthorizationResponse as gv, ResponseStyle as gy, MemoryRecordWithValue as h, UnsetFunctionRouteResponse as h_, CreateOrgSecretInput as ha, FunctionRouteResult as hc, ListEndpointsResponse as hd, ListSentEmailsResponse as hf, StartCliLoginResponse as hg, SendPermissionManagedZone as hh, Conversation as hi, GetFunctionTestRunTraceResponses as hl, ResendCliSignupVerificationErrors as hm, listTemplates as hn, DeleteEndpointResponses as ho, PublishPolicy as hp, AddDomainData as hr, DiscardEmailContentResponses as hs, deleteFilter as ht, GetTemplateResponse as hu, UpdateWakeAuthorizationInput as hv, RequestResult as hy, CreateAgentOptions as i, TestResult as i_, CreateFunctionResponses as ia, EmailStatus as ic, ListDomainsErrors as id, ListRegistryRequestsErrors as if, StartAgentClaimResponses as ig, SendEmailData as ih, CliSignupVerifyResult as ii, GetFunctionResponse as il, RescheduleSentEmailErrors as im, listFilters as in, DeleteDomainResponse as io, PollCliLoginErrors as ip, updateRegistry as ir, DeleteWakeScheduleError as is, createFunctionSecret as it, GetStorageStatsErrors as iu, UpdateRouteResponse as iv, X402PaymentRequirements as iy, client as j, UpdateEndpointError as j_, CreateWakeAuthorizationError as ja, GetAccountError as jc, ListFunctionSecretsResponse as jd, ListWakeDispatchesResponses as jf, TemplateRegistryPage as jg, SetFunctionSecretInput as jh, CreateChallengeErrors as ji, GetOutboundStatusData as jl, RoutingTopology as jm, resolveRegistryHandle as jn, DeleteMemoryData as jo, RegistryAgent as jp, AwaitReplyData as jr, DownloadDomainZoneFileResponse as js, getAgent as jt, GetWebhookSecretResponses as ju, VerifyAgentSignupData as jv, SendThreadInput as k, UpdateDomainResponses as k_, CreateRouteResponses as ka, GateFix as kc, ListFunctionSecretsError as kd, ListWakeDispatchesErrors as kf, TemplateManifest as kg, SetFunctionSecretError as kh, CreateChallengeData as ki, GetOrgRoutingTopologyResponse as kl, RotateWebhookSecretResponses as km, resendAgentSignupVerification as kn, DeleteFunctionSecretResponse as ko, RegisterPayoutAddressResponses as kp, AgentSignupVerifyResult as kr, DownloadDomainZoneFileError as ks, downloadSentAttachmentPart as kt, GetWebhookSecretErrors as ku, VerifyAgentClaimResponse as kv, InboxStreamOptions as l, UnpublishAgentErrors as l_, CreateFunctionSecretInput as la, Filter as lc, ListEmailsErrors as ld, ListRoutesErrors as lf, StartAgentSignupResponse as lg, SendMailAttachment as lh, CompleteWebhookEventResponses as li, GetFunctionRoutingResponse as ll, ResendAgentSignupVerificationErrors as lm, listPayoutAddresses as ln, DeleteEmailResponse as lo, PublishAgentError as lp, verifyAgentClaim as lr, DeliverySummary as ls, createWakeSchedule as lt, GetTemplateErrors as lu, UpdateSpendPolicyInput as lv, Client as ly, MemoryRecord as m, UnsetFunctionRouteErrors as m_, CreateOrgSecretErrors as ma, FunctionRouteBody as mc, ListEndpointsErrors as md, ListSentEmailsErrors as mf, StartCliLoginInput as mg, SendPermissionAnyRecipient as mh, CompleteWebhookStdoutInput as mi, GetFunctionTestRunTraceResponse as ml, ResendCliSignupVerificationError as mm, listSentEmails as mn, DeleteEndpointResponse as mo, PublishAgentResult as mp, AccountUpdated as mr, DiscardEmailContentResponse as ms, deleteEndpoint as mt, GetTemplateInstallResponses as mu, UpdateWakeAuthorizationErrors as mv, RequestOptions$2 as my, AgentResource as n, TestFunctionResponses as n_, CreateFunctionInput as na, EmailSearchMeta as nc, ListDomainsData as nd, ListRegistryRequestsData as nf, StartAgentClaimInput as ng, SemanticSearchScoreBreakdown as nh, CliSignupResendResult as ni, GetFunctionError as nl, RescheduleSentEmailData as nm, listEmails as nn, DeleteDomainError as no, PollCliLoginData as np, updateFilter as nr, DeleteWakeAuthorizationResponses as ns, createFilter as nt, GetStorageStatsData as nu, UpdateRouteErrors as nv, X402NonceBinding as ny, ForwardInput as o, ThreadMessage as o_, CreateFunctionSecretData as oa, EmailWebhookStatus as oc, ListDomainsResponses as od, ListRegistryRequestsResponses as of, StartAgentSignupError as og, SendEmailErrors as oh, CompleteWebhookEventError as oi, GetFunctionRoutingData as ol, RescheduleSentEmailResponses as om, listFunctionSecrets as on, DeleteEmailData as oo, PollCliLoginResponse as op, updateSpendPolicy as or, DeleteWakeScheduleResponse as os, createRegistry as ot, GetStorageStatsResponses as ou, UpdateSpendPolicyData as ov, X402Receipt as oy, MemoryJsonValue as p, UnsetFunctionRouteError as p_, CreateOrgSecretError as pa, FunctionLogRow as pc, ListEndpointsError as pd, ListSentEmailsError as pf, StartCliLoginErrors as pg, SendPermissionAddress as ph, CompleteWebhookResponse as pi, GetFunctionTestRunTraceErrors as pl, ResendCliSignupVerificationData as pm, listRoutes as pn, DeleteEndpointErrors as po, PublishAgentResponses as pp, Account as pr, DiscardEmailContentErrors as ps, deleteEmail as pt, GetTemplateInstallResponse as pu, UpdateWakeAuthorizationError as pv, Options$1 as py, cancelSentEmail as q, UpdateFunctionResponses as q_, DecideRegistryRequestResponse as qa, GetConversationErrors as qc, ListPayoutAddressesResponses as qd, PaginationMeta as qf, TestEndpointRulesErrors as qg, SimulateRouteError as qh, CreateFilterData as qi, GetSentEmailError as ql, SemanticSearchCoverage as qm, startCliSignup as qn, DeleteRouteData as qo, ReplayEmailWebhooksResponse as qp, CliLoginPollResult as qr, DownloadSentAttachmentPartResponses as qs, getTemplate as qt, ListDeclinedPaymentsError as qu, VerifyDomainResponses as qv, AttachmentPartDownload as r, TestInvocationResult as r_, CreateFunctionResponse as ra, EmailSearchResult as rc, ListDomainsError as rd, ListRegistryRequestsError as rf, StartAgentClaimResponse as rg, SemanticSearchSnippet as rh, CliSignupStartResult as ri, GetFunctionErrors as rl, RescheduleSentEmailError as rm, listEndpoints as rn, DeleteDomainErrors as ro, PollCliLoginError as rp, updateFunction as rr, DeleteWakeScheduleData as rs, createFunction as rt, GetStorageStatsError as ru, UpdateRouteInput as rv, X402PaymentPayload as ry, InboundEmail as s, UnpublishAgentData as s_, CreateFunctionSecretError as sa, Endpoint as sc, ListEmailsData as sd, ListRoutesData as sf, StartAgentSignupErrors as sg, SendEmailResponse as sh, CompleteWebhookEventErrors as si, GetFunctionRoutingError as sl, ResendAgentSignupVerificationData as sm, listFunctions as sn, DeleteEmailError as so, PollCliLoginResponses as sp, updateWakeAuthorization as sr, DeleteWakeScheduleResponses as ss, createRoute as st, GetTemplateData as su, UpdateSpendPolicyError as sv, X402SpendPolicy as sy, AccountResource as t, TestFunctionResponse as t_, CreateFunctionErrors as ta, EmailSearchHighlights as tc, ListDeliveriesResponses as td, ListRegistryAgentsResponses as tf, StartAgentClaimErrors as tg, SemanticSearchResult as th, CliLogoutResult as ti, GetFunctionData as tl, ReplyToEmailResponses as tm, listDomains as tn, DeleteDomainData as to, PlanLimits as tp, updateEndpoint as tr, DeleteWakeAuthorizationResponse as ts, createEndpoint as tt, GetSpendPolicyResponses as tu, UpdateRouteError as tv, X402EmailChallengeDetails as ty, MemoriesResource as u, UnpublishAgentResponse as u_, CreateFunctionSecretResponse as ua, FunctionDeployStatus as uc, ListEmailsResponse as ud, ListRoutesResponse as uf, StartAgentSignupResponses as ug, SendMailInput as uh, CompleteWebhookExecInput as ui, GetFunctionRoutingResponses as ul, ResendAgentSignupVerificationInput as um, listRegistries as un, DeleteEmailResponses as uo, PublishAgentErrors as up, verifyAgentSignup as ur, DiscardContentResult as us, decideRegistryRequest as ut, GetTemplateInstallData as uu, UpdateSpendPolicyResponse as uv, ClientOptions as uy, MemorySetInput as v, UpdateAccountData as v_, CreateRegistryData as va, FunctionSecretWriteResult as vc, ListFiltersData as vd, ListTemplatesError as vf, StartCliSignupError as vg, SendPermissionsMeta as vh, CreateAgentAccountError as vi, GetInboxStatusErrors as vl, ResendCliSignupVerificationResponses as vm, listWakeSchedules as vn, DeleteFilterErrors as vo, PullWebhookEventErrors as vp, AddDomainInput as vr, DomainDnsHealthCheck as vs, deleteMemory as vt, GetThreadError as vu, UpdateWakeScheduleData as vv, Auth as vy, SendAttachment as w, UpdateDomainData as w_, CreateRouteData as wa, FunctionTestRunReply as wc, ListFunctionLogsError as wd, ListWakeAuthorizationsErrors as wf, SuccessEnvelope as wg, SetFunctionRouteError as wh, CreateAgentClaimLinkError as wi, GetMemoryResponse as wl, ResourceId as wm, reorderRoutes as wn, DeleteFunctionResponse as wo, RegisterPayoutAddressData as wp, AgentClaimResult as wr, DownloadAttachmentsError as ws, discardEmailContent as wt, GetWakeScheduleErrors as wu, VerifiedDomain as wv, ReplyInput as x, UpdateAccountInput as x_, CreateRegistryInput as xa, FunctionTestRunDeliveryEndpoint as xc, ListFiltersResponse as xd, ListTemplatesResponses as xf, StartCliSignupResponse as xg, SentEmailStatus as xh, CreateAgentAccountResponse as xi, GetMemoryData as xl, ResolveRegistryHandleErrors as xm, publishAgent as xn, DeleteFunctionData as xo, PullWebhookInput as xp, AgentAccountResult as xr, DomainDnsRecord as xs, deleteRoute as xt, GetThreadResponses as xu, UpdateWakeScheduleInput as xv, PrimitiveClient as y, UpdateAccountError as y_, CreateRegistryError as ya, FunctionTestRun as yc, ListFiltersError as yd, ListTemplatesErrors as yf, StartCliSignupErrors as yg, SentEmailDetail as yh, CreateAgentAccountErrors as yi, GetInboxStatusResponse as yl, ResolveRegistryHandleData as ym, payChallenge as yn, DeleteFilterResponse as yo, PullWebhookEventResponse as yp, AddDomainResponse as yr, DomainDnsHealthScope as ys, deleteOrgSecret as yt, GetThreadErrors as yu, UpdateWakeScheduleError as yv, PrimitiveApiClient as z, UpdateFilterInput as z_, CreateWakeScheduleInput as za, GetAgentResponses as zc, ListOrgSecretsError as zd, MemoryScope as zf, TemplateVariableValidation as zg, SetMemoryResponses as zh, CreateEmailChallengeResponse as zi, GetRegistryResponse as zl, SearchEmailsErrors as zm, setFunctionRoute as zn, DeleteOrgSecretErrors as zo, ReplayDeliveryData as zp, CancelSentEmailErrors as zr, DownloadRawEmailError as zs, getMemory as zt, InstallTemplateBody as zu, VerifyCliSignupErrors as zv };