@primitivedotdev/sdk 0.8.0 → 0.10.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,5 +1,4 @@
1
- import { __export } from "./chunk-Cl8Af3a2.js";
2
- import { ReceivedEmail } from "./received-email-C67Z7Dha.js";
1
+ import { t as ReceivedEmail } from "./received-email-DNjpq_Wt.js";
3
2
 
4
3
  //#region src/api/generated/core/auth.gen.d.ts
5
4
  type AuthToken = string | undefined;
@@ -18,7 +17,8 @@ interface Auth {
18
17
  name?: string;
19
18
  scheme?: 'basic' | 'bearer';
20
19
  type: 'apiKey' | 'http';
21
- } //#endregion
20
+ }
21
+ //#endregion
22
22
  //#region src/api/generated/core/pathSerializer.gen.d.ts
23
23
  interface SerializerOptions<T> {
24
24
  /**
@@ -28,7 +28,8 @@ interface SerializerOptions<T> {
28
28
  style: T;
29
29
  }
30
30
  type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
31
- type ObjectStyle = 'form' | 'deepObject'; //#endregion
31
+ type ObjectStyle = 'form' | 'deepObject';
32
+ //#endregion
32
33
  //#region src/api/generated/core/bodySerializer.gen.d.ts
33
34
  type QuerySerializer = (query: Record<string, unknown>) => string;
34
35
  type BodySerializer = (body: unknown) => unknown;
@@ -44,7 +45,6 @@ type QuerySerializerOptions = QuerySerializerOptionsObject & {
44
45
  */
45
46
  parameters?: Record<string, QuerySerializerOptionsObject>;
46
47
  };
47
-
48
48
  //#endregion
49
49
  //#region src/api/generated/core/types.gen.d.ts
50
50
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
@@ -53,9 +53,9 @@ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn
53
53
  * Returns the final request URL.
54
54
  */
55
55
  buildUrl: BuildUrlFn;
56
- getConfig: () => Config$1;
56
+ getConfig: () => Config;
57
57
  request: RequestFn;
58
- setConfig: (config: Config$1) => Config$1;
58
+ setConfig: (config: Config) => Config;
59
59
  } & { [K in HttpMethod]: MethodFn } & ([SseFn] extends [never] ? {
60
60
  sse?: never;
61
61
  } : {
@@ -113,7 +113,8 @@ interface Config$1 {
113
113
  * the transformers and returned to the user.
114
114
  */
115
115
  responseValidator?: (data: unknown) => Promise<unknown>;
116
- } //#endregion
116
+ }
117
+ //#endregion
117
118
  //#region src/api/generated/core/serverSentEvents.gen.d.ts
118
119
  type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
119
120
  /**
@@ -184,7 +185,6 @@ interface StreamEvent<TData = unknown> {
184
185
  type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
185
186
  stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
186
187
  };
187
-
188
188
  //#endregion
189
189
  //#region src/api/generated/client/utils.gen.d.ts
190
190
  type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
@@ -204,7 +204,6 @@ interface Middleware<Req, Res, Err, Options> {
204
204
  request: Interceptors<ReqInterceptor<Req, Options>>;
205
205
  response: Interceptors<ResInterceptor<Res, Req, Options>>;
206
206
  }
207
-
208
207
  //#endregion
209
208
  //#region src/api/generated/client/types.gen.d.ts
210
209
  type ResponseStyle = 'data' | 'fields';
@@ -289,16 +288,16 @@ interface ClientOptions$1 {
289
288
  responseStyle?: ResponseStyle;
290
289
  throwOnError?: boolean;
291
290
  }
292
- type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
293
- type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
294
- type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
295
- type BuildUrlFn$1 = <TData extends {
291
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
292
+ type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
293
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
294
+ type BuildUrlFn = <TData extends {
296
295
  body?: unknown;
297
296
  path?: Record<string, unknown>;
298
297
  query?: Record<string, unknown>;
299
298
  url: string;
300
- }>(options: TData & Options$2<TData>) => string;
301
- type Client = Client$1<RequestFn$1, Config, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
299
+ }>(options: TData & Options$1<TData>) => string;
300
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
302
301
  interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
303
302
  };
304
303
  /**
@@ -318,8 +317,7 @@ interface TDataShape {
318
317
  url: string;
319
318
  }
320
319
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
321
- type Options$2<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
322
-
320
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
323
321
  //#endregion
324
322
  //#region src/api/generated/types.gen.d.ts
325
323
  type ClientOptions = {
@@ -349,7 +347,7 @@ type PaginationMeta = {
349
347
  type ErrorResponse = {
350
348
  success: boolean;
351
349
  error: {
352
- code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'bad_gateway' | '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';
350
+ 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' | 'inbound_not_repliable';
353
351
  message: string;
354
352
  /**
355
353
  * Optional structured data that callers can inspect to recover
@@ -581,6 +579,14 @@ type EmailDetail = {
581
579
  sender: string;
582
580
  recipient: string;
583
581
  subject?: string | null;
582
+ /**
583
+ * Plain-text body parsed from the inbound MIME, matching the `email.parsed.body_text` field on the webhook payload. Null when the message had no text part or parsing failed.
584
+ */
585
+ body_text?: string | null;
586
+ /**
587
+ * HTML body parsed from the inbound MIME, matching the `email.parsed.body_html` field on the webhook payload. Null when the message had no HTML part or parsing failed.
588
+ */
589
+ body_html?: string | null;
584
590
  status: 'pending' | 'accepted' | 'completed' | 'rejected';
585
591
  domain: string;
586
592
  spam_score?: number | null;
@@ -609,6 +615,42 @@ type EmailDetail = {
609
615
  * Parsed to address (same as recipient)
610
616
  */
611
617
  to_email: string;
618
+ /**
619
+ * True when the inbound's sender address has a matching grant
620
+ * in the org's known-send-addresses list. Advisory: a true
621
+ * value does not by itself guarantee that a reply will be
622
+ * accepted by send-mail's gates; the per-send check at send
623
+ * time remains authoritative.
624
+ *
625
+ */
626
+ from_known_address?: boolean;
627
+ /**
628
+ * Sent emails recorded as replies to this inbound, in send
629
+ * order (ascending). Populated when a customer's send-mail
630
+ * request carries an `in_reply_to` Message-ID that matches
631
+ * this inbound's `message_id` in the same org. Includes
632
+ * attempts that were gate-denied, so the array reflects every
633
+ * recorded reply attempt regardless of outcome.
634
+ *
635
+ */
636
+ replies: Array<EmailDetailReply>;
637
+ };
638
+ type EmailDetailReply = {
639
+ /**
640
+ * Sent-email row id.
641
+ */
642
+ id: string;
643
+ status: SentEmailStatus;
644
+ /**
645
+ * Recipient address as recorded on the sent_emails row.
646
+ */
647
+ to_address: string;
648
+ subject?: string | null;
649
+ created_at: string;
650
+ /**
651
+ * Outbound relay queue identifier when available.
652
+ */
653
+ queue_id?: string | null;
612
654
  };
613
655
  type SendMailInput = {
614
656
  /**
@@ -650,6 +692,44 @@ type SendMailInput = {
650
692
  };
651
693
  type SentEmailStatus = 'queued' | 'submitted_to_agent' | 'agent_failed' | 'unknown' | 'delivered' | 'bounced' | 'deferred' | 'wait_timeout';
652
694
  type DeliveryStatus = 'delivered' | 'bounced' | 'deferred' | 'wait_timeout';
695
+ /**
696
+ * Body shape for `/emails/{id}/reply`. Intentionally narrow:
697
+ * recipients (`to`), subject, and threading headers
698
+ * (`in_reply_to`, `references`) are derived server-side from
699
+ * the inbound row referenced by the path id and are rejected by
700
+ * `additionalProperties` if passed (returns 400).
701
+ *
702
+ * `from` IS allowed because of legitimate use cases (display-name
703
+ * addition, replying from a different verified outbound address,
704
+ * multi-team triage). Send-mail's per-send `canSendFrom` gate
705
+ * validates the from-domain regardless, so the override carries
706
+ * no extra privilege.
707
+ *
708
+ */
709
+ type ReplyInput$1 = {
710
+ /**
711
+ * Plain-text reply body. At least one of body_text or body_html is required. The combined UTF-8 byte length of body_text and body_html must be at most 262144 bytes (same cap as send-mail).
712
+ */
713
+ body_text?: string;
714
+ /**
715
+ * HTML reply body. At least one of body_text or body_html is required.
716
+ */
717
+ body_html?: string;
718
+ /**
719
+ * Optional override for the reply's From header. Defaults to
720
+ * the inbound's recipient. Use to add a display name (`"Acme
721
+ * Support" <agent@company.com>`) or to reply from a different
722
+ * verified outbound address (e.g. multi-team routing where
723
+ * support@ triages to billing@). The from-domain must be a
724
+ * verified outbound domain for your org, same as send-mail.
725
+ *
726
+ */
727
+ from?: string;
728
+ /**
729
+ * When true, wait for the first downstream SMTP delivery outcome before returning, mirroring the send-mail `wait` semantics.
730
+ */
731
+ wait?: boolean;
732
+ };
653
733
  type SendMailResult = {
654
734
  /**
655
735
  * Persisted sent-email attempt ID.
@@ -689,6 +769,15 @@ type SendMailResult = {
689
769
  * SMTP response text from the first downstream delivery outcome when wait is true.
690
770
  */
691
771
  smtp_response_text?: string;
772
+ /**
773
+ * True when the response replays a previously-recorded send
774
+ * keyed by `client_idempotency_key` (same key, same canonical
775
+ * payload). False on a fresh send and on gate-denied
776
+ * responses. Lets callers branch on cache state without
777
+ * diffing fields.
778
+ *
779
+ */
780
+ idempotent_replay: boolean;
692
781
  };
693
782
  type Endpoint = {
694
783
  id: string;
@@ -1361,6 +1450,68 @@ type DownloadAttachmentsResponses = {
1361
1450
  200: Blob | File;
1362
1451
  };
1363
1452
  type DownloadAttachmentsResponse = DownloadAttachmentsResponses[keyof DownloadAttachmentsResponses];
1453
+ type ReplyToEmailData = {
1454
+ body: ReplyInput$1;
1455
+ path: {
1456
+ /**
1457
+ * Resource UUID
1458
+ */
1459
+ id: string;
1460
+ };
1461
+ query?: never;
1462
+ url: '/emails/{id}/reply';
1463
+ };
1464
+ type ReplyToEmailErrors = {
1465
+ /**
1466
+ * Invalid request parameters
1467
+ */
1468
+ 400: ErrorResponse;
1469
+ /**
1470
+ * Invalid or missing API key
1471
+ */
1472
+ 401: ErrorResponse;
1473
+ /**
1474
+ * Authenticated caller lacks permission for the operation
1475
+ */
1476
+ 403: ErrorResponse;
1477
+ /**
1478
+ * Resource not found
1479
+ */
1480
+ 404: ErrorResponse;
1481
+ /**
1482
+ * Inbound is not repliable: the row exists but lacks a
1483
+ * `message_id` (no thread anchor) or a `recipient` (cannot
1484
+ * derive the From address).
1485
+ *
1486
+ */
1487
+ 422: ErrorResponse;
1488
+ /**
1489
+ * Rate limit exceeded
1490
+ */
1491
+ 429: ErrorResponse;
1492
+ /**
1493
+ * Primitive encountered an internal error
1494
+ */
1495
+ 500: ErrorResponse;
1496
+ /**
1497
+ * Primitive could not complete the downstream SMTP request
1498
+ */
1499
+ 502: ErrorResponse;
1500
+ /**
1501
+ * Primitive is temporarily unable to process the request
1502
+ */
1503
+ 503: ErrorResponse;
1504
+ };
1505
+ type ReplyToEmailError = ReplyToEmailErrors[keyof ReplyToEmailErrors];
1506
+ type ReplyToEmailResponses = {
1507
+ /**
1508
+ * Outbound relay result
1509
+ */
1510
+ 200: SuccessEnvelope & {
1511
+ data?: SendMailResult;
1512
+ };
1513
+ };
1514
+ type ReplyToEmailResponse = ReplyToEmailResponses[keyof ReplyToEmailResponses];
1364
1515
  type ReplayEmailWebhooksData = {
1365
1516
  body?: never;
1366
1517
  path: {
@@ -1829,12 +1980,11 @@ type SendEmailResponses = {
1829
1980
  data?: SendMailResult;
1830
1981
  };
1831
1982
  };
1832
- type SendEmailResponse = SendEmailResponses[keyof SendEmailResponses]; //#endregion
1833
- //#region src/api/generated/sdk.gen.d.ts
1983
+ type SendEmailResponse = SendEmailResponses[keyof SendEmailResponses];
1834
1984
  declare namespace sdk_gen_d_exports {
1835
- export { Options$1 as Options, addDomain, createEndpoint, createFilter, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, downloadAttachments, downloadRawEmail, getAccount, getEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, replayDelivery, replayEmailWebhooks, rotateWebhookSecret, sendEmail, testEndpoint, updateAccount, updateDomain, updateEndpoint, updateFilter, verifyDomain };
1985
+ export { Options, addDomain, createEndpoint, createFilter, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, downloadAttachments, downloadRawEmail, getAccount, getEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, sendEmail, testEndpoint, updateAccount, updateDomain, updateEndpoint, updateFilter, verifyDomain };
1836
1986
  }
1837
- type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$2<TData, ThrowOnError, TResponse> & {
1987
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
1838
1988
  /**
1839
1989
  * You can provide a client instance returned by `createClient()` instead of
1840
1990
  * individual options. This might be also useful if you want to implement a
@@ -1850,15 +2000,15 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
1850
2000
  /**
1851
2001
  * Get account info
1852
2002
  */
1853
- declare const getAccount: <ThrowOnError extends boolean = false>(options?: Options$1<GetAccountData, ThrowOnError>) => RequestResult<GetAccountResponses, GetAccountErrors, ThrowOnError, "fields">;
2003
+ declare const getAccount: <ThrowOnError extends boolean = false>(options?: Options<GetAccountData, ThrowOnError>) => RequestResult<GetAccountResponses, GetAccountErrors, ThrowOnError, "fields">;
1854
2004
  /**
1855
2005
  * Update account settings
1856
2006
  */
1857
- declare const updateAccount: <ThrowOnError extends boolean = false>(options: Options$1<UpdateAccountData, ThrowOnError>) => RequestResult<UpdateAccountResponses, UpdateAccountErrors, ThrowOnError, "fields">;
2007
+ declare const updateAccount: <ThrowOnError extends boolean = false>(options: Options<UpdateAccountData, ThrowOnError>) => RequestResult<UpdateAccountResponses, UpdateAccountErrors, ThrowOnError, "fields">;
1858
2008
  /**
1859
2009
  * Get storage usage
1860
2010
  */
1861
- declare const getStorageStats: <ThrowOnError extends boolean = false>(options?: Options$1<GetStorageStatsData, ThrowOnError>) => RequestResult<GetStorageStatsResponses, GetStorageStatsErrors, ThrowOnError, "fields">;
2011
+ declare const getStorageStats: <ThrowOnError extends boolean = false>(options?: Options<GetStorageStatsData, ThrowOnError>) => RequestResult<GetStorageStatsResponses, GetStorageStatsErrors, ThrowOnError, "fields">;
1862
2012
  /**
1863
2013
  * Get webhook signing secret
1864
2014
  *
@@ -1866,7 +2016,7 @@ declare const getStorageStats: <ThrowOnError extends boolean = false>(options?:
1866
2016
  * exists yet, one is generated automatically on first access.
1867
2017
  *
1868
2018
  */
1869
- declare const getWebhookSecret: <ThrowOnError extends boolean = false>(options?: Options$1<GetWebhookSecretData, ThrowOnError>) => RequestResult<GetWebhookSecretResponses, GetWebhookSecretErrors, ThrowOnError, "fields">;
2019
+ declare const getWebhookSecret: <ThrowOnError extends boolean = false>(options?: Options<GetWebhookSecretData, ThrowOnError>) => RequestResult<GetWebhookSecretResponses, GetWebhookSecretErrors, ThrowOnError, "fields">;
1870
2020
  /**
1871
2021
  * Rotate webhook signing secret
1872
2022
  *
@@ -1874,7 +2024,7 @@ declare const getWebhookSecret: <ThrowOnError extends boolean = false>(options?:
1874
2024
  * Rate limited to once per 60 minutes.
1875
2025
  *
1876
2026
  */
1877
- declare const rotateWebhookSecret: <ThrowOnError extends boolean = false>(options?: Options$1<RotateWebhookSecretData, ThrowOnError>) => RequestResult<RotateWebhookSecretResponses, RotateWebhookSecretErrors, ThrowOnError, "fields">;
2027
+ declare const rotateWebhookSecret: <ThrowOnError extends boolean = false>(options?: Options<RotateWebhookSecretData, ThrowOnError>) => RequestResult<RotateWebhookSecretResponses, RotateWebhookSecretErrors, ThrowOnError, "fields">;
1878
2028
  /**
1879
2029
  * List all domains
1880
2030
  *
@@ -1883,7 +2033,7 @@ declare const rotateWebhookSecret: <ThrowOnError extends boolean = false>(option
1883
2033
  * `verified` boolean to distinguish between the two states.
1884
2034
  *
1885
2035
  */
1886
- declare const listDomains: <ThrowOnError extends boolean = false>(options?: Options$1<ListDomainsData, ThrowOnError>) => RequestResult<ListDomainsResponses, ListDomainsErrors, ThrowOnError, "fields">;
2036
+ declare const listDomains: <ThrowOnError extends boolean = false>(options?: Options<ListDomainsData, ThrowOnError>) => RequestResult<ListDomainsResponses, ListDomainsErrors, ThrowOnError, "fields">;
1887
2037
  /**
1888
2038
  * Claim a new domain
1889
2039
  *
@@ -1892,13 +2042,13 @@ declare const listDomains: <ThrowOnError extends boolean = false>(options?: Opti
1892
2042
  * calling the verify endpoint.
1893
2043
  *
1894
2044
  */
1895
- declare const addDomain: <ThrowOnError extends boolean = false>(options: Options$1<AddDomainData, ThrowOnError>) => RequestResult<AddDomainResponses, AddDomainErrors, ThrowOnError, "fields">;
2045
+ declare const addDomain: <ThrowOnError extends boolean = false>(options: Options<AddDomainData, ThrowOnError>) => RequestResult<AddDomainResponses, AddDomainErrors, ThrowOnError, "fields">;
1896
2046
  /**
1897
2047
  * Delete a domain
1898
2048
  *
1899
2049
  * Deletes a verified or unverified domain claim.
1900
2050
  */
1901
- declare const deleteDomain: <ThrowOnError extends boolean = false>(options: Options$1<DeleteDomainData, ThrowOnError>) => RequestResult<DeleteDomainResponses, DeleteDomainErrors, ThrowOnError, "fields">;
2051
+ declare const deleteDomain: <ThrowOnError extends boolean = false>(options: Options<DeleteDomainData, ThrowOnError>) => RequestResult<DeleteDomainResponses, DeleteDomainErrors, ThrowOnError, "fields">;
1902
2052
  /**
1903
2053
  * Update domain settings
1904
2054
  *
@@ -1906,7 +2056,7 @@ declare const deleteDomain: <ThrowOnError extends boolean = false>(options: Opti
1906
2056
  * updated. Per-domain spam thresholds require a Pro plan.
1907
2057
  *
1908
2058
  */
1909
- declare const updateDomain: <ThrowOnError extends boolean = false>(options: Options$1<UpdateDomainData, ThrowOnError>) => RequestResult<UpdateDomainResponses, UpdateDomainErrors, ThrowOnError, "fields">;
2059
+ declare const updateDomain: <ThrowOnError extends boolean = false>(options: Options<UpdateDomainData, ThrowOnError>) => RequestResult<UpdateDomainResponses, UpdateDomainErrors, ThrowOnError, "fields">;
1910
2060
  /**
1911
2061
  * Verify domain ownership
1912
2062
  *
@@ -1915,7 +2065,7 @@ declare const updateDomain: <ThrowOnError extends boolean = false>(options: Opti
1915
2065
  * On failure, returns which checks passed and which failed.
1916
2066
  *
1917
2067
  */
1918
- declare const verifyDomain: <ThrowOnError extends boolean = false>(options: Options$1<VerifyDomainData, ThrowOnError>) => RequestResult<VerifyDomainResponses, VerifyDomainErrors, ThrowOnError, "fields">;
2068
+ declare const verifyDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyDomainData, ThrowOnError>) => RequestResult<VerifyDomainResponses, VerifyDomainErrors, ThrowOnError, "fields">;
1919
2069
  /**
1920
2070
  * List emails
1921
2071
  *
@@ -1924,15 +2074,15 @@ declare const verifyDomain: <ThrowOnError extends boolean = false>(options: Opti
1924
2074
  * sender, and recipient fields.
1925
2075
  *
1926
2076
  */
1927
- declare const listEmails: <ThrowOnError extends boolean = false>(options?: Options$1<ListEmailsData, ThrowOnError>) => RequestResult<ListEmailsResponses, ListEmailsErrors, ThrowOnError, "fields">;
2077
+ declare const listEmails: <ThrowOnError extends boolean = false>(options?: Options<ListEmailsData, ThrowOnError>) => RequestResult<ListEmailsResponses, ListEmailsErrors, ThrowOnError, "fields">;
1928
2078
  /**
1929
2079
  * Delete an email
1930
2080
  */
1931
- declare const deleteEmail: <ThrowOnError extends boolean = false>(options: Options$1<DeleteEmailData, ThrowOnError>) => RequestResult<DeleteEmailResponses, DeleteEmailErrors, ThrowOnError, "fields">;
2081
+ declare const deleteEmail: <ThrowOnError extends boolean = false>(options: Options<DeleteEmailData, ThrowOnError>) => RequestResult<DeleteEmailResponses, DeleteEmailErrors, ThrowOnError, "fields">;
1932
2082
  /**
1933
2083
  * Get email details
1934
2084
  */
1935
- declare const getEmail: <ThrowOnError extends boolean = false>(options: Options$1<GetEmailData, ThrowOnError>) => RequestResult<GetEmailResponses, GetEmailErrors, ThrowOnError, "fields">;
2085
+ declare const getEmail: <ThrowOnError extends boolean = false>(options: Options<GetEmailData, ThrowOnError>) => RequestResult<GetEmailResponses, GetEmailErrors, ThrowOnError, "fields">;
1936
2086
  /**
1937
2087
  * Download raw email
1938
2088
  *
@@ -1941,7 +2091,7 @@ declare const getEmail: <ThrowOnError extends boolean = false>(options: Options$
1941
2091
  * valid session.
1942
2092
  *
1943
2093
  */
1944
- declare const downloadRawEmail: <ThrowOnError extends boolean = false>(options: Options$1<DownloadRawEmailData, ThrowOnError>) => RequestResult<DownloadRawEmailResponses, DownloadRawEmailErrors, ThrowOnError, "fields">;
2094
+ declare const downloadRawEmail: <ThrowOnError extends boolean = false>(options: Options<DownloadRawEmailData, ThrowOnError>) => RequestResult<DownloadRawEmailResponses, DownloadRawEmailErrors, ThrowOnError, "fields">;
1945
2095
  /**
1946
2096
  * Download email attachments
1947
2097
  *
@@ -1950,7 +2100,25 @@ declare const downloadRawEmail: <ThrowOnError extends boolean = false>(options:
1950
2100
  * payloads) or a valid session.
1951
2101
  *
1952
2102
  */
1953
- declare const downloadAttachments: <ThrowOnError extends boolean = false>(options: Options$1<DownloadAttachmentsData, ThrowOnError>) => RequestResult<DownloadAttachmentsResponses, DownloadAttachmentsErrors, ThrowOnError, "fields">;
2103
+ declare const downloadAttachments: <ThrowOnError extends boolean = false>(options: Options<DownloadAttachmentsData, ThrowOnError>) => RequestResult<DownloadAttachmentsResponses, DownloadAttachmentsErrors, ThrowOnError, "fields">;
2104
+ /**
2105
+ * Reply to an inbound email
2106
+ *
2107
+ * Sends an outbound reply to the inbound email identified by `id`.
2108
+ * Threading headers (`In-Reply-To`, `References`), recipient
2109
+ * derivation (Reply-To, then From, then bare sender), and the
2110
+ * `Re:` subject prefix are all derived server-side from the
2111
+ * stored inbound row. The request body carries only the message
2112
+ * body and optional `wait` flag; passing any header or recipient
2113
+ * override is rejected by the schema (`additionalProperties:
2114
+ * false`).
2115
+ *
2116
+ * Forwards through the same gates as `/send-mail`: the response
2117
+ * status, error envelope, and `idempotent_replay` flag mirror
2118
+ * the send-mail contract verbatim.
2119
+ *
2120
+ */
2121
+ declare const replyToEmail: <ThrowOnError extends boolean = false>(options: Options<ReplyToEmailData, ThrowOnError>) => RequestResult<ReplyToEmailResponses, ReplyToEmailErrors, ThrowOnError, "fields">;
1954
2122
  /**
1955
2123
  * Replay email webhooks
1956
2124
  *
@@ -1961,13 +2129,13 @@ declare const downloadAttachments: <ThrowOnError extends boolean = false>(option
1961
2129
  * budget with delivery replays.
1962
2130
  *
1963
2131
  */
1964
- declare const replayEmailWebhooks: <ThrowOnError extends boolean = false>(options: Options$1<ReplayEmailWebhooksData, ThrowOnError>) => RequestResult<ReplayEmailWebhooksResponses, ReplayEmailWebhooksErrors, ThrowOnError, "fields">;
2132
+ declare const replayEmailWebhooks: <ThrowOnError extends boolean = false>(options: Options<ReplayEmailWebhooksData, ThrowOnError>) => RequestResult<ReplayEmailWebhooksResponses, ReplayEmailWebhooksErrors, ThrowOnError, "fields">;
1965
2133
  /**
1966
2134
  * List webhook endpoints
1967
2135
  *
1968
2136
  * Returns all active (non-deleted) webhook endpoints.
1969
2137
  */
1970
- declare const listEndpoints: <ThrowOnError extends boolean = false>(options?: Options$1<ListEndpointsData, ThrowOnError>) => RequestResult<ListEndpointsResponses, ListEndpointsErrors, ThrowOnError, "fields">;
2138
+ declare const listEndpoints: <ThrowOnError extends boolean = false>(options?: Options<ListEndpointsData, ThrowOnError>) => RequestResult<ListEndpointsResponses, ListEndpointsErrors, ThrowOnError, "fields">;
1971
2139
  /**
1972
2140
  * Create a webhook endpoint
1973
2141
  *
@@ -1976,7 +2144,7 @@ declare const listEndpoints: <ThrowOnError extends boolean = false>(options?: Op
1976
2144
  * Subject to plan limits on the number of active endpoints.
1977
2145
  *
1978
2146
  */
1979
- declare const createEndpoint: <ThrowOnError extends boolean = false>(options: Options$1<CreateEndpointData, ThrowOnError>) => RequestResult<CreateEndpointResponses, CreateEndpointErrors, ThrowOnError, "fields">;
2147
+ declare const createEndpoint: <ThrowOnError extends boolean = false>(options: Options<CreateEndpointData, ThrowOnError>) => RequestResult<CreateEndpointResponses, CreateEndpointErrors, ThrowOnError, "fields">;
1980
2148
  /**
1981
2149
  * Delete a webhook endpoint
1982
2150
  *
@@ -1984,7 +2152,7 @@ declare const createEndpoint: <ThrowOnError extends boolean = false>(options: Op
1984
2152
  * receive webhook deliveries.
1985
2153
  *
1986
2154
  */
1987
- declare const deleteEndpoint: <ThrowOnError extends boolean = false>(options: Options$1<DeleteEndpointData, ThrowOnError>) => RequestResult<DeleteEndpointResponses, DeleteEndpointErrors, ThrowOnError, "fields">;
2155
+ declare const deleteEndpoint: <ThrowOnError extends boolean = false>(options: Options<DeleteEndpointData, ThrowOnError>) => RequestResult<DeleteEndpointResponses, DeleteEndpointErrors, ThrowOnError, "fields">;
1988
2156
  /**
1989
2157
  * Update a webhook endpoint
1990
2158
  *
@@ -1993,7 +2161,7 @@ declare const deleteEndpoint: <ThrowOnError extends boolean = false>(options: Op
1993
2161
  * deactivated endpoint with the new URL is reactivated).
1994
2162
  *
1995
2163
  */
1996
- declare const updateEndpoint: <ThrowOnError extends boolean = false>(options: Options$1<UpdateEndpointData, ThrowOnError>) => RequestResult<UpdateEndpointResponses, UpdateEndpointErrors, ThrowOnError, "fields">;
2164
+ declare const updateEndpoint: <ThrowOnError extends boolean = false>(options: Options<UpdateEndpointData, ThrowOnError>) => RequestResult<UpdateEndpointResponses, UpdateEndpointErrors, ThrowOnError, "fields">;
1997
2165
  /**
1998
2166
  * Send a test webhook
1999
2167
  *
@@ -2004,13 +2172,13 @@ declare const updateEndpoint: <ThrowOnError extends boolean = false>(options: Op
2004
2172
  * from the rate limit.
2005
2173
  *
2006
2174
  */
2007
- declare const testEndpoint: <ThrowOnError extends boolean = false>(options: Options$1<TestEndpointData, ThrowOnError>) => RequestResult<TestEndpointResponses, TestEndpointErrors, ThrowOnError, "fields">;
2175
+ declare const testEndpoint: <ThrowOnError extends boolean = false>(options: Options<TestEndpointData, ThrowOnError>) => RequestResult<TestEndpointResponses, TestEndpointErrors, ThrowOnError, "fields">;
2008
2176
  /**
2009
2177
  * List filter rules
2010
2178
  *
2011
2179
  * Returns all whitelist and blocklist filter rules.
2012
2180
  */
2013
- declare const listFilters: <ThrowOnError extends boolean = false>(options?: Options$1<ListFiltersData, ThrowOnError>) => RequestResult<ListFiltersResponses, ListFiltersErrors, ThrowOnError, "fields">;
2181
+ declare const listFilters: <ThrowOnError extends boolean = false>(options?: Options<ListFiltersData, ThrowOnError>) => RequestResult<ListFiltersResponses, ListFiltersErrors, ThrowOnError, "fields">;
2014
2182
  /**
2015
2183
  * Create a filter rule
2016
2184
  *
@@ -2018,17 +2186,17 @@ declare const listFilters: <ThrowOnError extends boolean = false>(options?: Opti
2018
2186
  * require a Pro plan. Patterns are stored as lowercase.
2019
2187
  *
2020
2188
  */
2021
- declare const createFilter: <ThrowOnError extends boolean = false>(options: Options$1<CreateFilterData, ThrowOnError>) => RequestResult<CreateFilterResponses, CreateFilterErrors, ThrowOnError, "fields">;
2189
+ declare const createFilter: <ThrowOnError extends boolean = false>(options: Options<CreateFilterData, ThrowOnError>) => RequestResult<CreateFilterResponses, CreateFilterErrors, ThrowOnError, "fields">;
2022
2190
  /**
2023
2191
  * Delete a filter rule
2024
2192
  */
2025
- declare const deleteFilter: <ThrowOnError extends boolean = false>(options: Options$1<DeleteFilterData, ThrowOnError>) => RequestResult<DeleteFilterResponses, DeleteFilterErrors, ThrowOnError, "fields">;
2193
+ declare const deleteFilter: <ThrowOnError extends boolean = false>(options: Options<DeleteFilterData, ThrowOnError>) => RequestResult<DeleteFilterResponses, DeleteFilterErrors, ThrowOnError, "fields">;
2026
2194
  /**
2027
2195
  * Update a filter rule
2028
2196
  *
2029
2197
  * Toggle a filter's enabled state.
2030
2198
  */
2031
- declare const updateFilter: <ThrowOnError extends boolean = false>(options: Options$1<UpdateFilterData, ThrowOnError>) => RequestResult<UpdateFilterResponses, UpdateFilterErrors, ThrowOnError, "fields">;
2199
+ declare const updateFilter: <ThrowOnError extends boolean = false>(options: Options<UpdateFilterData, ThrowOnError>) => RequestResult<UpdateFilterResponses, UpdateFilterErrors, ThrowOnError, "fields">;
2032
2200
  /**
2033
2201
  * List webhook deliveries
2034
2202
  *
@@ -2036,7 +2204,7 @@ declare const updateFilter: <ThrowOnError extends boolean = false>(options: Opti
2036
2204
  * includes a nested `email` object with sender, recipient, and subject.
2037
2205
  *
2038
2206
  */
2039
- declare const listDeliveries: <ThrowOnError extends boolean = false>(options?: Options$1<ListDeliveriesData, ThrowOnError>) => RequestResult<ListDeliveriesResponses, ListDeliveriesErrors, ThrowOnError, "fields">;
2207
+ declare const listDeliveries: <ThrowOnError extends boolean = false>(options?: Options<ListDeliveriesData, ThrowOnError>) => RequestResult<ListDeliveriesResponses, ListDeliveriesErrors, ThrowOnError, "fields">;
2040
2208
  /**
2041
2209
  * Replay a webhook delivery
2042
2210
  *
@@ -2047,7 +2215,7 @@ declare const listDeliveries: <ThrowOnError extends boolean = false>(options?: O
2047
2215
  * sharing an org-wide budget with email replays.
2048
2216
  *
2049
2217
  */
2050
- declare const replayDelivery: <ThrowOnError extends boolean = false>(options: Options$1<ReplayDeliveryData, ThrowOnError>) => RequestResult<ReplayDeliveryResponses, ReplayDeliveryErrors, ThrowOnError, "fields">;
2218
+ declare const replayDelivery: <ThrowOnError extends boolean = false>(options: Options<ReplayDeliveryData, ThrowOnError>) => RequestResult<ReplayDeliveryResponses, ReplayDeliveryErrors, ThrowOnError, "fields">;
2051
2219
  /**
2052
2220
  * Send outbound email
2053
2221
  *
@@ -2056,8 +2224,7 @@ declare const replayDelivery: <ThrowOnError extends boolean = false>(options: Op
2056
2224
  * Set `wait: true` to wait for the first downstream SMTP delivery outcome.
2057
2225
  *
2058
2226
  */
2059
- declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options$1<SendEmailData, ThrowOnError>) => RequestResult<SendEmailResponses, SendEmailErrors, ThrowOnError, "fields">;
2060
-
2227
+ declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options<SendEmailData, ThrowOnError>) => RequestResult<SendEmailResponses, SendEmailErrors, ThrowOnError, "fields">;
2061
2228
  //#endregion
2062
2229
  //#region src/api/index.d.ts
2063
2230
  declare const DEFAULT_BASE_URL = "https://www.primitive.dev/api/v1";
@@ -2081,10 +2248,34 @@ interface SendInput {
2081
2248
  waitTimeoutMs?: number;
2082
2249
  idempotencyKey?: string;
2083
2250
  }
2251
+ /**
2252
+ * Input shape for `client.reply(email, input)`.
2253
+ *
2254
+ * Can be a bare string (treated as `text`) or an object. The reply
2255
+ * operation calls the server's `/emails/{id}/reply` endpoint, which
2256
+ * derives recipients, subject (`Re: <parent>`), and threading headers
2257
+ * from the inbound row. The shape here is the small subset of fields
2258
+ * the customer can still control:
2259
+ *
2260
+ * - `text` / `html`: the reply body. At least one is required.
2261
+ * - `from`: optional override for the From header. Defaults server-
2262
+ * side to the address that received the inbound. Use to add a
2263
+ * display name (`"Acme Support" <agent@company.com>`) or to reply
2264
+ * from a different verified outbound address. The from-domain must
2265
+ * be a verified outbound domain for your org.
2266
+ * - `wait`: when true, wait for the first downstream SMTP delivery
2267
+ * outcome before resolving. Mirrors send-mail's `wait` semantics.
2268
+ *
2269
+ * `subject` is intentionally not accepted: a custom subject silently
2270
+ * breaks Gmail's threading because Gmail's Conversation View requires
2271
+ * both a References match and a normalized-subject match. Always
2272
+ * sends `Re: <parent>` with idempotent prefixing.
2273
+ */
2084
2274
  type ReplyInput = string | {
2085
- text: string;
2086
- subject?: string;
2275
+ text?: string;
2276
+ html?: string;
2087
2277
  from?: string;
2278
+ wait?: boolean;
2088
2279
  };
2089
2280
  interface ForwardInput {
2090
2281
  to: string;
@@ -2101,6 +2292,12 @@ interface SendResult {
2101
2292
  clientIdempotencyKey: string;
2102
2293
  requestId: string;
2103
2294
  contentHash: string;
2295
+ /**
2296
+ * True when the response replays a previously-recorded send keyed by
2297
+ * `clientIdempotencyKey` (same key, same canonical payload). False on
2298
+ * a fresh send and on gate-denied responses.
2299
+ */
2300
+ idempotentReplay: boolean;
2104
2301
  deliveryStatus?: SendMailResult["delivery_status"];
2105
2302
  smtpResponseCode?: number | null;
2106
2303
  smtpResponseText?: string;
@@ -2133,6 +2330,20 @@ declare class PrimitiveApiClient {
2133
2330
  type PrimitiveClientOptions = PrimitiveApiClientOptions;
2134
2331
  declare class PrimitiveClient extends PrimitiveApiClient {
2135
2332
  send(input: SendInput): Promise<SendResult>;
2333
+ /**
2334
+ * Reply to an inbound email.
2335
+ *
2336
+ * Calls `POST /emails/{id}/reply`. The server derives recipients
2337
+ * (Reply-To, then From, then sender), subject (`Re: <parent>` with
2338
+ * idempotent prefix), and threading headers (`In-Reply-To`,
2339
+ * `References`) from the stored inbound row. The customer controls
2340
+ * only the body, an optional `from` override, and the `wait` flag.
2341
+ *
2342
+ * Subject overrides are intentionally not supported: Gmail's
2343
+ * Conversation View needs both a References match and a normalized-
2344
+ * subject match to thread, so a custom subject silently breaks the
2345
+ * thread for half the recipient population.
2346
+ */
2136
2347
  reply(email: ReceivedEmail, input: ReplyInput): Promise<SendResult>;
2137
2348
  forward(email: ReceivedEmail, input: ForwardInput): Promise<SendResult>;
2138
2349
  }
@@ -2140,6 +2351,5 @@ declare function createPrimitiveApiClient(options?: PrimitiveApiClientOptions):
2140
2351
  declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
2141
2352
  declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
2142
2353
  declare const operations: typeof sdk_gen_d_exports;
2143
-
2144
2354
  //#endregion
2145
- export { Account, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, Auth, Client, ClientOptions, ClientOptions$1, Config, CreateClientConfig, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, Cursor, DEFAULT_BASE_URL as DEFAULT_BASE_URL$1, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeliveryStatus, DeliverySummary, Domain, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailDetail, EmailSummary, Endpoint, ErrorResponse, Filter, ForwardInput, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, Limit, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, Options$1 as Options, Options$2 as Options$1, PaginationMeta, PrimitiveApiClient as PrimitiveApiClient$1, PrimitiveApiClientOptions, PrimitiveApiError as PrimitiveApiError$1, PrimitiveApiErrorDetails, PrimitiveClient as PrimitiveClient$1, PrimitiveClientOptions, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, RequestOptions, RequestResult, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailInput, SendMailResult, SendResult, SendThreadInput, SentEmailStatus, StorageStats, SuccessEnvelope, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestResult, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, VerifiedDomain, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, WebhookSecret, addDomain as addDomain$1, client as client$1, createEndpoint as createEndpoint$1, createFilter as createFilter$1, createPrimitiveApiClient as createPrimitiveApiClient$1, createPrimitiveClient as createPrimitiveClient$1, deleteDomain as deleteDomain$1, deleteEmail as deleteEmail$1, deleteEndpoint as deleteEndpoint$1, deleteFilter as deleteFilter$1, downloadAttachments as downloadAttachments$1, downloadRawEmail as downloadRawEmail$1, getAccount as getAccount$1, getEmail as getEmail$1, getStorageStats as getStorageStats$1, getWebhookSecret as getWebhookSecret$1, listDeliveries as listDeliveries$1, listDomains as listDomains$1, listEmails as listEmails$1, listEndpoints as listEndpoints$1, listFilters as listFilters$1, operations as operations$1, replayDelivery as replayDelivery$1, replayEmailWebhooks as replayEmailWebhooks$1, rotateWebhookSecret as rotateWebhookSecret$1, sendEmail as sendEmail$1, testEndpoint as testEndpoint$1, updateAccount as updateAccount$1, updateDomain as updateDomain$1, updateEndpoint as updateEndpoint$1, updateFilter as updateFilter$1, verifyDomain as verifyDomain$1 };
2355
+ export { AddDomainResponse as $, ReplayDeliveryErrors as $n, UpdateEndpointResponses as $r, ErrorResponse as $t, getWebhookSecret as A, ListDomainsError as An, TestEndpointError as Ar, DeleteFilterData as At, sendEmail as B, ListEndpointsError as Bn, UpdateAccountResponse as Br, DownloadAttachmentsError as Bt, deleteEndpoint as C, Limit as Cn, SendEmailResponses as Cr, DeleteEmailResponse as Ct, getAccount as D, ListDeliveriesResponse as Dn, StorageStats as Dr, DeleteEndpointErrors as Dt, downloadRawEmail as E, ListDeliveriesErrors as En, SentEmailStatus as Er, DeleteEndpointError as Et, listFilters as F, ListEmailsError as Fn, UnverifiedDomain as Fr, DeliveryStatus as Ft, updateFilter as G, ListFiltersData as Gn, UpdateDomainInput as Gr, DownloadRawEmailError as Gt, updateAccount as H, ListEndpointsResponse as Hn, UpdateDomainData as Hr, DownloadAttachmentsResponse as Ht, replayDelivery as I, ListEmailsErrors as In, UpdateAccountData as Ir, DeliverySummary as It, AccountUpdated as J, ListFiltersResponse as Jn, UpdateEndpointData as Jr, DownloadRawEmailResponses as Jt, verifyDomain as K, ListFiltersError as Kn, UpdateDomainResponse as Kr, DownloadRawEmailErrors as Kt, replayEmailWebhooks as L, ListEmailsResponse as Ln, UpdateAccountError as Lr, Domain as Lt, listDomains as M, ListDomainsResponse as Mn, TestEndpointResponse as Mr, DeleteFilterErrors as Mt, listEmails as N, ListDomainsResponses as Nn, TestEndpointResponses as Nr, DeleteFilterResponse as Nt, getEmail as O, ListDeliveriesResponses as On, SuccessEnvelope as Or, DeleteEndpointResponse as Ot, listEndpoints as P, ListEmailsData as Pn, TestResult as Pr, DeleteFilterResponses as Pt, AddDomainInput as Q, ReplayDeliveryError as Qn, UpdateEndpointResponse as Qr, Endpoint as Qt, replyToEmail as R, ListEmailsResponses as Rn, UpdateAccountErrors as Rr, DomainVerifyResult as Rt, deleteEmail as S, GetWebhookSecretResponses as Sn, SendEmailResponse as Sr, DeleteEmailErrors as St, downloadAttachments as T, ListDeliveriesError as Tn, SendMailResult as Tr, DeleteEndpointData as Tt, updateDomain as U, ListEndpointsResponses as Un, UpdateDomainError as Ur, DownloadAttachmentsResponses as Ut, testEndpoint as V, ListEndpointsErrors as Vn, UpdateAccountResponses as Vr, DownloadAttachmentsErrors as Vt, updateEndpoint as W, ListEnvelope as Wn, UpdateDomainErrors as Wr, DownloadRawEmailData as Wt, AddDomainError as X, PaginationMeta as Xn, UpdateEndpointErrors as Xr, EmailDetailReply as Xt, AddDomainData as Y, ListFiltersResponses as Yn, UpdateEndpointError as Yr, EmailDetail as Yt, AddDomainErrors as Z, ReplayDeliveryData as Zn, UpdateEndpointInput as Zr, EmailSummary as Zt, Options as _, Options$1 as _i, GetStorageStatsResponses as _n, RotateWebhookSecretResponse as _r, DeleteDomainErrors as _t, PrimitiveApiError as a, UpdateFilterResponses as ai, GetAccountErrors as an, ReplayEmailWebhooksResponse as ar, CreateEndpointInput as at, createFilter as b, ResponseStyle as bi, GetWebhookSecretErrors as bn, SendEmailError as br, DeleteEmailData as bt, PrimitiveClientOptions as c, VerifyDomainError as ci, GetEmailData as cn, ReplyToEmailData as cr, CreateFilterData as ct, SendResult as d, VerifyDomainResponses as di, GetEmailResponse as dn, ReplyToEmailResponse as dr, CreateFilterInput as dt, UpdateFilterData as ei, Filter as en, ReplayDeliveryResponse as er, AddDomainResponses as et, SendThreadInput as f, WebhookSecret as fi, GetEmailResponses as fn, ReplyToEmailResponses as fr, CreateFilterResponse as ft, operations as g, CreateClientConfig as gi, GetStorageStatsResponse as gn, RotateWebhookSecretErrors as gr, DeleteDomainError as gt, createPrimitiveClient as h, Config as hi, GetStorageStatsErrors as hn, RotateWebhookSecretError as hr, DeleteDomainData as ht, PrimitiveApiClientOptions as i, UpdateFilterResponse as ii, GetAccountError as in, ReplayEmailWebhooksErrors as ir, CreateEndpointErrors as it, listDeliveries as j, ListDomainsErrors as jn, TestEndpointErrors as jr, DeleteFilterError as jt, getStorageStats as k, ListDomainsData as kn, TestEndpointData as kr, DeleteEndpointResponses as kt, ReplyInput as l, VerifyDomainErrors as li, GetEmailError as ln, ReplyToEmailError as lr, CreateFilterError as lt, createPrimitiveApiClient as m, ClientOptions$1 as mi, GetStorageStatsError as mn, RotateWebhookSecretData as mr, Cursor as mt, ForwardInput as n, UpdateFilterErrors as ni, GateFix as nn, ReplayEmailWebhooksData as nr, CreateEndpointData as nt, PrimitiveApiErrorDetails as o, VerifiedDomain as oi, GetAccountResponse as on, ReplayEmailWebhooksResponses as or, CreateEndpointResponse as ot, client as p, Client as pi, GetStorageStatsData as pn, ResourceId as pr, CreateFilterResponses as pt, Account as q, ListFiltersErrors as qn, UpdateDomainResponses as qr, DownloadRawEmailResponse as qt, PrimitiveApiClient as r, UpdateFilterInput as ri, GetAccountData as rn, ReplayEmailWebhooksError as rr, CreateEndpointError as rt, PrimitiveClient as s, VerifyDomainData as si, GetAccountResponses as sn, ReplayResult as sr, CreateEndpointResponses as st, DEFAULT_BASE_URL as t, UpdateFilterError as ti, GateDenial as tn, ReplayDeliveryResponses as tr, ClientOptions as tt, SendInput as u, VerifyDomainResponse as ui, GetEmailErrors as un, ReplyToEmailErrors as ur, CreateFilterErrors as ut, addDomain as v, RequestOptions as vi, GetWebhookSecretData as vn, RotateWebhookSecretResponses as vr, DeleteDomainResponse as vt, deleteFilter as w, ListDeliveriesData as wn, SendMailInput as wr, DeleteEmailResponses as wt, deleteDomain as x, Auth as xi, GetWebhookSecretResponse as xn, SendEmailErrors as xr, DeleteEmailError as xt, createEndpoint as y, RequestResult as yi, GetWebhookSecretError as yn, SendEmailData as yr, DeleteDomainResponses as yt, rotateWebhookSecret as z, ListEndpointsData as zn, UpdateAccountInput as zr, DownloadAttachmentsData as zt };