@primitivedotdev/sdk 0.27.1 → 0.29.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 { m as ReceivedEmail } from "./errors-T_0JE528.js";
1
+ import { m as ReceivedEmail } from "./errors-CO-rv_nK.js";
2
2
 
3
3
  //#region ../packages/api-core/src/api/core/auth.gen.d.ts
4
4
  type AuthToken = string | undefined;
@@ -482,6 +482,76 @@ type CliLoginPollResult = {
482
482
  org_id: string;
483
483
  org_name: string | null;
484
484
  };
485
+ type StartCliSignupInput = {
486
+ email: string;
487
+ signup_code: string;
488
+ /**
489
+ * Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
490
+ */
491
+ terms_accepted: boolean;
492
+ /**
493
+ * Human-readable device name used for the created CLI API key
494
+ */
495
+ device_name?: string;
496
+ /**
497
+ * Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer
498
+ */
499
+ metadata?: {
500
+ [key: string]: unknown;
501
+ };
502
+ };
503
+ type CliSignupStartResult = {
504
+ /**
505
+ * Opaque token used to verify or resend the pending CLI signup
506
+ */
507
+ signup_token: string;
508
+ email: string;
509
+ /**
510
+ * Seconds until the pending signup expires
511
+ */
512
+ expires_in: number;
513
+ /**
514
+ * Minimum seconds before requesting another verification email
515
+ */
516
+ resend_after: number;
517
+ /**
518
+ * Number of digits in the emailed verification code
519
+ */
520
+ verification_code_length: number;
521
+ };
522
+ type ResendCliSignupVerificationInput = {
523
+ signup_token: string;
524
+ };
525
+ type CliSignupResendResult = {
526
+ email: string;
527
+ /**
528
+ * Seconds until the pending signup expires
529
+ */
530
+ expires_in: number;
531
+ /**
532
+ * Minimum seconds before requesting another verification email
533
+ */
534
+ resend_after: number;
535
+ /**
536
+ * Number of digits in the emailed verification code
537
+ */
538
+ verification_code_length: number;
539
+ };
540
+ type VerifyCliSignupInput = {
541
+ signup_token: string;
542
+ verification_code: string;
543
+ password: string;
544
+ };
545
+ type CliSignupVerifyResult = {
546
+ /**
547
+ * Newly-created API key for CLI authentication
548
+ */
549
+ api_key: string;
550
+ key_id: string;
551
+ key_prefix: string;
552
+ org_id: string;
553
+ org_name: string | null;
554
+ };
485
555
  type CliLogoutInput = {
486
556
  /**
487
557
  * Optional key id guard; when provided it must match the authenticated API key
@@ -1641,9 +1711,8 @@ type CreateFunctionInput = {
1641
1711
  code: string;
1642
1712
  /**
1643
1713
  * Optional source map for the bundle. Up to 5 MiB UTF-8.
1644
- * Stored only on the runtime side (not in Primitive's
1645
- * database) and used to symbolicate stack traces in the
1646
- * function's logs.
1714
+ * Stored with the deployment attempt and sent to the runtime
1715
+ * to symbolicate stack traces in the function's logs.
1647
1716
  *
1648
1717
  */
1649
1718
  sourceMap?: string;
@@ -1666,12 +1735,16 @@ type UpdateFunctionInput = {
1666
1735
  };
1667
1736
  /**
1668
1737
  * Metadata returned by POST /functions/{id}/test. The send is
1669
- * queued; the actual invocation lands on the function's
1670
- * invocations list a few seconds later as the inbound mail
1671
- * traverses the MX path.
1738
+ * queued; poll `trace_url` to watch the run progress through
1739
+ * send -> inbound -> webhook deliveries -> outbound requests,
1740
+ * logs, and replies.
1672
1741
  *
1673
1742
  */
1674
1743
  type TestInvocationResult = {
1744
+ /**
1745
+ * Durable test run id used to fetch the run trace.
1746
+ */
1747
+ test_run_id: string;
1675
1748
  /**
1676
1749
  * Verified inbound domain the test email was sent to.
1677
1750
  */
@@ -1707,6 +1780,121 @@ type TestInvocationResult = {
1707
1780
  * Function detail page where invocations show up live.
1708
1781
  */
1709
1782
  watch_url: string;
1783
+ /**
1784
+ * Relative API URL for GET /functions/{id}/test-runs/{test_run_id}/trace.
1785
+ */
1786
+ trace_url: string;
1787
+ };
1788
+ /**
1789
+ * High-level state for a function test run trace:
1790
+ * - `send_failed`: the initial test email send failed.
1791
+ * - `waiting_for_send`: the test run was created but no send result has been recorded yet.
1792
+ * - `waiting_for_inbound`: the test send was queued and the matching inbound email has not arrived yet.
1793
+ * - `waiting_for_function`: the inbound email arrived and webhook/function processing is still in flight.
1794
+ * - `completed`: the function webhook completed successfully.
1795
+ * - `failed`: webhook delivery exhausted retries.
1796
+ *
1797
+ */
1798
+ type FunctionTestRunState = 'send_failed' | 'waiting_for_send' | 'waiting_for_inbound' | 'waiting_for_function' | 'completed' | 'failed';
1799
+ type FunctionTestRun = {
1800
+ id: string;
1801
+ function_id: string;
1802
+ inbound_domain: string;
1803
+ to: string;
1804
+ from: string;
1805
+ subject: string;
1806
+ poll_since: string;
1807
+ created_at: string;
1808
+ sent_at: string | null;
1809
+ send_error: string | null;
1810
+ };
1811
+ type FunctionTestRunSend = {
1812
+ id: string;
1813
+ status: SentEmailStatus;
1814
+ queue_id: string | null;
1815
+ created_at: string;
1816
+ updated_at: string;
1817
+ } | null;
1818
+ type FunctionTestRunInboundEmail = {
1819
+ id: string;
1820
+ status: EmailStatus;
1821
+ received_at: string;
1822
+ from: string;
1823
+ to: string;
1824
+ subject: string | null;
1825
+ webhook_status: EmailWebhookStatus;
1826
+ webhook_attempt_count: number;
1827
+ webhook_last_status_code: number | null;
1828
+ webhook_last_error: string | null;
1829
+ } | null;
1830
+ type FunctionTestRunDeliveryEndpoint = {
1831
+ id: string;
1832
+ /**
1833
+ * Endpoint kind. Current traces may include `http` or `function`; future endpoint kinds may appear.
1834
+ */
1835
+ kind: string;
1836
+ function_id: string | null;
1837
+ function_name: string | null;
1838
+ domain_id: string | null;
1839
+ enabled: boolean;
1840
+ deactivated_at: string | null;
1841
+ is_current_function: boolean;
1842
+ } | null;
1843
+ type FunctionTestRunDelivery = {
1844
+ /**
1845
+ * Webhook delivery id.
1846
+ */
1847
+ id: string;
1848
+ endpoint_id: string;
1849
+ endpoint_url: string;
1850
+ status: 'pending' | 'delivered' | 'header_confirmed' | 'failed';
1851
+ attempt_count: number;
1852
+ duration_ms: number | null;
1853
+ last_error: string | null;
1854
+ last_error_code: string | null;
1855
+ created_at: string;
1856
+ updated_at: string;
1857
+ endpoint: FunctionTestRunDeliveryEndpoint;
1858
+ };
1859
+ type FunctionTestRunOutboundRequest = {
1860
+ id: string;
1861
+ function_id: string;
1862
+ webhook_delivery_id: string | null;
1863
+ email_id: string | null;
1864
+ endpoint_id: string | null;
1865
+ method: string;
1866
+ url: string;
1867
+ host: string;
1868
+ path: string;
1869
+ status_code: number | null;
1870
+ ok: boolean | null;
1871
+ duration_ms: number;
1872
+ error: string | null;
1873
+ ts: string;
1874
+ };
1875
+ type FunctionTestRunReply = {
1876
+ id: string;
1877
+ status: SentEmailStatus;
1878
+ to: string;
1879
+ subject: string;
1880
+ queue_id: string | null;
1881
+ created_at: string;
1882
+ };
1883
+ /**
1884
+ * End-to-end trace for a `POST /functions/{id}/test` run. The
1885
+ * shape is stable, but many nested sections are null or empty
1886
+ * until the corresponding phase has happened.
1887
+ *
1888
+ */
1889
+ type FunctionTestRunTrace = {
1890
+ state: FunctionTestRunState;
1891
+ test_run: FunctionTestRun;
1892
+ test_send: FunctionTestRunSend;
1893
+ inbound_email: FunctionTestRunInboundEmail;
1894
+ deliveries: Array<FunctionTestRunDelivery>;
1895
+ outbound_requests: Array<FunctionTestRunOutboundRequest>;
1896
+ logs: Array<FunctionLogRow>;
1897
+ replies: Array<FunctionTestRunReply>;
1710
1898
  };
1711
1899
  /**
1712
1900
  * One row from GET /functions/{id}/logs. Represents a single
@@ -1888,6 +2076,84 @@ type PollCliLoginResponses = {
1888
2076
  };
1889
2077
  };
1890
2078
  type PollCliLoginResponse = PollCliLoginResponses[keyof PollCliLoginResponses];
2079
+ type StartCliSignupData = {
2080
+ body: StartCliSignupInput;
2081
+ path?: never;
2082
+ query?: never;
2083
+ url: '/cli/signup/start';
2084
+ };
2085
+ type StartCliSignupErrors = {
2086
+ /**
2087
+ * Invalid request parameters
2088
+ */
2089
+ 400: ErrorResponse;
2090
+ /**
2091
+ * Rate limit exceeded
2092
+ */
2093
+ 429: ErrorResponse;
2094
+ };
2095
+ type StartCliSignupError = StartCliSignupErrors[keyof StartCliSignupErrors];
2096
+ type StartCliSignupResponses = {
2097
+ /**
2098
+ * CLI signup session created and verification email sent
2099
+ */
2100
+ 201: SuccessEnvelope & {
2101
+ data?: CliSignupStartResult;
2102
+ };
2103
+ };
2104
+ type StartCliSignupResponse = StartCliSignupResponses[keyof StartCliSignupResponses];
2105
+ type ResendCliSignupVerificationData = {
2106
+ body: ResendCliSignupVerificationInput;
2107
+ path?: never;
2108
+ query?: never;
2109
+ url: '/cli/signup/resend';
2110
+ };
2111
+ type ResendCliSignupVerificationErrors = {
2112
+ /**
2113
+ * Invalid token or expired token
2114
+ */
2115
+ 400: ErrorResponse;
2116
+ /**
2117
+ * Global rate limit exceeded or resend requested too quickly
2118
+ */
2119
+ 429: ErrorResponse;
2120
+ };
2121
+ type ResendCliSignupVerificationError = ResendCliSignupVerificationErrors[keyof ResendCliSignupVerificationErrors];
2122
+ type ResendCliSignupVerificationResponses = {
2123
+ /**
2124
+ * Verification email resent
2125
+ */
2126
+ 200: SuccessEnvelope & {
2127
+ data?: CliSignupResendResult;
2128
+ };
2129
+ };
2130
+ type ResendCliSignupVerificationResponse = ResendCliSignupVerificationResponses[keyof ResendCliSignupVerificationResponses];
2131
+ type VerifyCliSignupData = {
2132
+ body: VerifyCliSignupInput;
2133
+ path?: never;
2134
+ query?: never;
2135
+ url: '/cli/signup/verify';
2136
+ };
2137
+ type VerifyCliSignupErrors = {
2138
+ /**
2139
+ * Invalid request, invalid verification code, expired token, invalid signup code, rejected password, or account creation failure
2140
+ */
2141
+ 400: ErrorResponse;
2142
+ /**
2143
+ * Rate limit exceeded
2144
+ */
2145
+ 429: ErrorResponse;
2146
+ };
2147
+ type VerifyCliSignupError = VerifyCliSignupErrors[keyof VerifyCliSignupErrors];
2148
+ type VerifyCliSignupResponses = {
2149
+ /**
2150
+ * CLI signup verified and API key created
2151
+ */
2152
+ 200: SuccessEnvelope & {
2153
+ data?: CliSignupVerifyResult;
2154
+ };
2155
+ };
2156
+ type VerifyCliSignupResponse = VerifyCliSignupResponses[keyof VerifyCliSignupResponses];
1891
2157
  type CliLogoutData = {
1892
2158
  body?: CliLogoutInput;
1893
2159
  path?: never;
@@ -3282,7 +3548,7 @@ type CreateFunctionData = {
3282
3548
  };
3283
3549
  type CreateFunctionErrors = {
3284
3550
  /**
3285
- * Invalid request parameters
3551
+ * Invalid request parameters or customer-correctable deploy rejection
3286
3552
  */
3287
3553
  400: ErrorResponse;
3288
3554
  /**
@@ -3294,9 +3560,17 @@ type CreateFunctionErrors = {
3294
3560
  */
3295
3561
  409: ErrorResponse;
3296
3562
  /**
3297
- * Primitive could not complete the downstream SMTP request
3563
+ * Function deploy could not be completed; previously deployed code remains live
3298
3564
  */
3299
- 502: ErrorResponse;
3565
+ 424: ErrorResponse;
3566
+ /**
3567
+ * Function deploy could not be completed; previously deployed code remains live
3568
+ */
3569
+ 429: ErrorResponse;
3570
+ /**
3571
+ * Function deploy could not be completed; previously deployed code remains live
3572
+ */
3573
+ 503: ErrorResponse;
3300
3574
  };
3301
3575
  type CreateFunctionError = CreateFunctionErrors[keyof CreateFunctionErrors];
3302
3576
  type CreateFunctionResponses = {
@@ -3389,7 +3663,7 @@ type UpdateFunctionData = {
3389
3663
  };
3390
3664
  type UpdateFunctionErrors = {
3391
3665
  /**
3392
- * Invalid request parameters
3666
+ * Invalid request parameters or customer-correctable deploy rejection
3393
3667
  */
3394
3668
  400: ErrorResponse;
3395
3669
  /**
@@ -3401,9 +3675,17 @@ type UpdateFunctionErrors = {
3401
3675
  */
3402
3676
  404: ErrorResponse;
3403
3677
  /**
3404
- * Primitive could not complete the downstream SMTP request
3678
+ * Function deploy could not be completed; previously deployed code remains live
3405
3679
  */
3406
- 502: ErrorResponse;
3680
+ 424: ErrorResponse;
3681
+ /**
3682
+ * Function deploy could not be completed; previously deployed code remains live
3683
+ */
3684
+ 429: ErrorResponse;
3685
+ /**
3686
+ * Function deploy could not be completed; previously deployed code remains live
3687
+ */
3688
+ 503: ErrorResponse;
3407
3689
  };
3408
3690
  type UpdateFunctionError = UpdateFunctionErrors[keyof UpdateFunctionErrors];
3409
3691
  type UpdateFunctionResponses = {
@@ -3474,6 +3756,49 @@ type TestFunctionResponses = {
3474
3756
  };
3475
3757
  };
3476
3758
  type TestFunctionResponse = TestFunctionResponses[keyof TestFunctionResponses];
3759
+ type GetFunctionTestRunTraceData = {
3760
+ body?: never;
3761
+ path: {
3762
+ /**
3763
+ * Resource UUID
3764
+ */
3765
+ id: string;
3766
+ /**
3767
+ * Function test run id returned by POST /functions/{id}/test.
3768
+ */
3769
+ run_id: string;
3770
+ };
3771
+ query?: never;
3772
+ url: '/functions/{id}/test-runs/{run_id}/trace';
3773
+ };
3774
+ type GetFunctionTestRunTraceErrors = {
3775
+ /**
3776
+ * Invalid request parameters
3777
+ */
3778
+ 400: ErrorResponse;
3779
+ /**
3780
+ * Invalid or missing API key
3781
+ */
3782
+ 401: ErrorResponse;
3783
+ /**
3784
+ * Authenticated caller lacks permission for the operation
3785
+ */
3786
+ 403: ErrorResponse;
3787
+ /**
3788
+ * Resource not found
3789
+ */
3790
+ 404: ErrorResponse;
3791
+ };
3792
+ type GetFunctionTestRunTraceError = GetFunctionTestRunTraceErrors[keyof GetFunctionTestRunTraceErrors];
3793
+ type GetFunctionTestRunTraceResponses = {
3794
+ /**
3795
+ * Function test run trace
3796
+ */
3797
+ 200: SuccessEnvelope & {
3798
+ data?: FunctionTestRunTrace;
3799
+ };
3800
+ };
3801
+ type GetFunctionTestRunTraceResponse = GetFunctionTestRunTraceResponses[keyof GetFunctionTestRunTraceResponses];
3477
3802
  type ListFunctionSecretsData = {
3478
3803
  body?: never;
3479
3804
  path: {
@@ -3691,7 +4016,7 @@ type ListFunctionLogsResponses = {
3691
4016
  };
3692
4017
  type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
3693
4018
  declare namespace sdk_gen_d_exports {
3694
- export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyDomain };
4019
+ export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getFunctionTestRunTrace, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyCliSignup, verifyDomain };
3695
4020
  }
3696
4021
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
3697
4022
  /**
@@ -3724,6 +4049,33 @@ declare const startCliLogin: <ThrowOnError extends boolean = false>(options?: Op
3724
4049
  *
3725
4050
  */
3726
4051
  declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Options<PollCliLoginData, ThrowOnError>) => RequestResult<PollCliLoginResponses, PollCliLoginErrors, ThrowOnError, "fields">;
4052
+ /**
4053
+ * Start CLI account signup
4054
+ *
4055
+ * Starts a terminal-native CLI signup. The API validates the signup code,
4056
+ * creates a pending signup session, sends an email verification code, and
4057
+ * returns an opaque signup token used by the resend and verify steps. This
4058
+ * endpoint does not require an API key.
4059
+ *
4060
+ */
4061
+ declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Options<StartCliSignupData, ThrowOnError>) => RequestResult<StartCliSignupResponses, StartCliSignupErrors, ThrowOnError, "fields">;
4062
+ /**
4063
+ * Resend CLI signup verification code
4064
+ *
4065
+ * Sends a new email verification code for a pending CLI signup session.
4066
+ * This endpoint does not require an API key.
4067
+ *
4068
+ */
4069
+ declare const resendCliSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendCliSignupVerificationData, ThrowOnError>) => RequestResult<ResendCliSignupVerificationResponses, ResendCliSignupVerificationErrors, ThrowOnError, "fields">;
4070
+ /**
4071
+ * Verify CLI signup and create API key
4072
+ *
4073
+ * Verifies the email code for a CLI signup session, creates the account,
4074
+ * redeems the reserved signup code, mints an org-scoped CLI API key, and
4075
+ * returns the raw key exactly once. This endpoint does not require an API key.
4076
+ *
4077
+ */
4078
+ declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
3727
4079
  /**
3728
4080
  * Revoke the current CLI API key
3729
4081
  *
@@ -4165,8 +4517,9 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
4165
4517
  * than relying on external imports.
4166
4518
  *
4167
4519
  * **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
4168
- * (optional) is capped at 5 MiB UTF-8 and is stored only on the
4169
- * edge runtime side; it is not persisted in Primitive's database.
4520
+ * (optional) is capped at 5 MiB UTF-8, stored with each deployment
4521
+ * attempt, and sent to the runtime so stack traces can resolve to
4522
+ * original source files.
4170
4523
  *
4171
4524
  * **Auto-wiring.** On successful deploy, Primitive automatically
4172
4525
  * creates a webhook endpoint that delivers inbound mail to the
@@ -4214,11 +4567,10 @@ declare const getFunction: <ThrowOnError extends boolean = false>(options: Optio
4214
4567
  * passing the same `code` re-runs the deploy and refreshes the
4215
4568
  * binding set with the latest values from the secrets table.
4216
4569
  *
4217
- * On a 502 deploy failure, the previously-deployed code stays
4218
- * live; the runtime never serves a half-built bundle. The
4219
- * `deploy_error` field on the returned record carries the error
4220
- * that came back from the runtime so you can surface it to users
4221
- * without polling.
4570
+ * On deploy failure, the previously-deployed code stays live; the
4571
+ * runtime never serves a half-built bundle. The response uses
4572
+ * `error.code` `deploy_failed`, and the function's `deploy_error`
4573
+ * field carries the latest deploy error for dashboard/API reads.
4222
4574
  *
4223
4575
  */
4224
4576
  declare const updateFunction: <ThrowOnError extends boolean = false>(options: Options<UpdateFunctionData, ThrowOnError>) => RequestResult<UpdateFunctionResponses, UpdateFunctionErrors, ThrowOnError, "fields">;
@@ -4248,6 +4600,17 @@ declare const updateFunction: <ThrowOnError extends boolean = false>(options: Op
4248
4600
  *
4249
4601
  */
4250
4602
  declare const testFunction: <ThrowOnError extends boolean = false>(options: Options<TestFunctionData, ThrowOnError>) => RequestResult<TestFunctionResponses, TestFunctionErrors, ThrowOnError, "fields">;
4603
+ /**
4604
+ * Get a function test run trace
4605
+ *
4606
+ * Returns the current end-to-end trace for a function test run.
4607
+ * The trace is intentionally partial while the test is still in
4608
+ * flight: callers can poll this endpoint and watch it fill in
4609
+ * from send -> inbound -> webhook deliveries -> outbound
4610
+ * requests, logs, and replies.
4611
+ *
4612
+ */
4613
+ declare const getFunctionTestRunTrace: <ThrowOnError extends boolean = false>(options: Options<GetFunctionTestRunTraceData, ThrowOnError>) => RequestResult<GetFunctionTestRunTraceResponses, GetFunctionTestRunTraceErrors, ThrowOnError, "fields">;
4251
4614
  /**
4252
4615
  * List a function's secrets
4253
4616
  *
@@ -4563,4 +4926,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
4563
4926
  declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
4564
4927
  declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
4565
4928
  //#endregion
4566
- export { pollCliLogin as $, StartCliLoginData as $a, PollCliLoginError as $i, DownloadRawEmailErrors as $n, VerifyDomainErrors as $o, GetWebhookSecretData as $r, CreateFunctionSecretData as $t, deleteEndpoint as A, SearchEmailsResponses as Aa, ListFiltersResponses as Ai, DeleteFunctionResponses as An, UpdateDomainResponse as Ao, GetEmailErrors as Ar, CliLogoutInput as At, getSendPermissions as B, SendPermissionManagedZone as Ba, ListFunctionSecretsResponses as Bi, DiscardEmailContentError as Bn, UpdateFilterErrors as Bo, GetSendPermissionsErrors as Br, CreateFilterData as Bt, cliLogout as C, RotateWebhookSecretErrors as Ca, ListEndpointsResponse as Ci, DeleteFilterErrors as Cn, UpdateAccountInput as Co, GetAccountData as Cr, AddDomainResponse as Ct, createFunctionSecret as D, SearchEmailsError as Da, ListFiltersError as Di, DeleteFunctionError as Dn, UpdateDomainError as Do, GetAccountResponses as Dr, CliLogoutData as Dt, createFunction as E, SearchEmailsData as Ea, ListFiltersData as Ei, DeleteFunctionData as En, UpdateDomainData as Eo, GetAccountResponse as Er, CliLoginStartResult as Et, downloadAttachments as F, SendEmailResponses as Fa, ListFunctionLogsResponses as Fi, DeleteFunctionSecretResponses as Fn, UpdateEndpointInput as Fo, GetFunctionErrors as Fr, CreateEndpointError as Ft, listDomains as G, SentEmailStatus as Ga, ListFunctionsResponses as Gi, DomainVerifyResult as Gn, UpdateFunctionError as Go, GetSentEmailErrors as Gr, CreateFilterResponses as Gt, getStorageStats as H, SendPermissionYourDomain as Ha, ListFunctionsError as Hi, DiscardEmailContentResponse as Hn, UpdateFilterResponse as Ho, GetSendPermissionsResponses as Hr, CreateFilterErrors as Ht, downloadRawEmail as I, SendMailInput as Ia, ListFunctionSecretsData as Ii, DeliveryStatus as In, UpdateEndpointResponse as Io, GetFunctionResponse as Ir, CreateEndpointErrors as It, listFilters as J, SetFunctionSecretError as Ja, ListSentEmailsErrors as Ji, DownloadAttachmentsErrors as Jn, UpdateFunctionResponse as Jo, GetStorageStatsData as Jr, CreateFunctionErrors as Jt, listEmails as K, SentEmailSummary as Ka, ListSentEmailsData as Ki, DownloadAttachmentsData as Kn, UpdateFunctionErrors as Ko, GetSentEmailResponse as Kr, CreateFunctionData as Kt, getAccount as L, SendMailResult as La, ListFunctionSecretsError as Li, DeliverySummary as Ln, UpdateEndpointResponses as Lo, GetFunctionResponses as Lr, CreateEndpointInput as Lt, deleteFunction as M, SendEmailError as Ma, ListFunctionLogsError as Mi, DeleteFunctionSecretError as Mn, UpdateEndpointData as Mo, GetEmailResponses as Mr, CliLogoutResponses as Mt, deleteFunctionSecret as N, SendEmailErrors as Na, ListFunctionLogsErrors as Ni, DeleteFunctionSecretErrors as Nn, UpdateEndpointError as No, GetFunctionData as Nr, CliLogoutResult as Nt, deleteDomain as O, SearchEmailsErrors as Oa, ListFiltersErrors as Oi, DeleteFunctionErrors as On, UpdateDomainErrors as Oo, GetEmailData as Or, CliLogoutError as Ot, discardEmailContent as P, SendEmailResponse as Pa, ListFunctionLogsResponse as Pi, DeleteFunctionSecretResponse as Pn, UpdateEndpointErrors as Po, GetFunctionError as Pr, CreateEndpointData as Pt, listSentEmails as Q, SetFunctionSecretResponses as Qa, PollCliLoginData as Qi, DownloadRawEmailError as Qn, VerifyDomainError as Qo, GetStorageStatsResponses as Qr, CreateFunctionResult as Qt, getEmail as R, SendPermissionAddress as Ra, ListFunctionSecretsErrors as Ri, DiscardContentResult as Rn, UpdateFilterData as Ro, GetSendPermissionsData as Rr, CreateEndpointResponse as Rt, addDomain as S, RotateWebhookSecretError as Sa, ListEndpointsErrors as Si, DeleteFilterError as Sn, UpdateAccountErrors as So, GateFix as Sr, AddDomainInput as St, createFilter as T, RotateWebhookSecretResponses as Ta, ListEnvelope as Ti, DeleteFilterResponses as Tn, UpdateAccountResponses as To, GetAccountErrors as Tr, CliLoginPollResult as Tt, getWebhookSecret as U, SendPermissionsMeta as Ua, ListFunctionsErrors as Ui, DiscardEmailContentResponses as Un, UpdateFilterResponses as Uo, GetSentEmailData as Ur, CreateFilterInput as Ut, getSentEmail as V, SendPermissionRule as Va, ListFunctionsData as Vi, DiscardEmailContentErrors as Vn, UpdateFilterInput as Vo, GetSendPermissionsResponse as Vr, CreateFilterError as Vt, listDeliveries as W, SentEmailDetail as Wa, ListFunctionsResponse as Wi, Domain as Wn, UpdateFunctionData as Wo, GetSentEmailError as Wr, CreateFilterResponse as Wt, listFunctionSecrets as X, SetFunctionSecretInput as Xa, ListSentEmailsResponses as Xi, DownloadAttachmentsResponses as Xn, VerifiedDomain as Xo, GetStorageStatsErrors as Xr, CreateFunctionResponse as Xt, listFunctionLogs as Y, SetFunctionSecretErrors as Ya, ListSentEmailsResponse as Yi, DownloadAttachmentsResponse as Yn, UpdateFunctionResponses as Yo, GetStorageStatsError as Yr, CreateFunctionInput as Yt, listFunctions as Z, SetFunctionSecretResponse as Za, PaginationMeta as Zi, DownloadRawEmailData as Zn, VerifyDomainData as Zo, GetStorageStatsResponse as Zr, CreateFunctionResponses as Zt, PrimitiveApiClientOptions as _, ReplyToEmailErrors as _a, ListEmailsErrors as _i, DeleteEndpointError as _n, TestInvocationResult as _o, FunctionListItem as _r, Account as _t, RequestOptions as a, ReplayDeliveryError as aa, ListDeliveriesData as ai, Cursor as an, StorageStats as ao, EmailSearchFacets as ar, ClientOptions as as, searchEmails as at, RequestOptions$1 as b, ResourceId as ba, ListEndpointsData as bi, DeleteEndpointResponses as bn, UpdateAccountData as bo, FunctionSecretWriteResult as br, AddDomainError as bt, SendThreadInput as c, ReplayDeliveryResponses as ca, ListDeliveriesResponse as ci, DeleteDomainErrors as cn, TestEndpointError as co, EmailSearchResult as cr, Options$1 as cs, startCliLogin as ct, PRIMITIVE_SIGNATURE_HEADER as d, ReplayEmailWebhooksErrors as da, ListDomainsError as di, DeleteEmailData as dn, TestEndpointResponses as do, EmailWebhookStatus as dr, ResponseStyle as ds, updateAccount as dt, PollCliLoginErrors as ea, GetWebhookSecretError as ei, CreateFunctionSecretError as en, StartCliLoginError as eo, DownloadRawEmailResponse as er, VerifyDomainResponse as es, replayDelivery as et, VerifyOptions as f, ReplayEmailWebhooksResponse as fa, ListDomainsErrors as fi, DeleteEmailError as fn, TestFunctionData as fo, Endpoint as fr, createConfig as fs, updateDomain as ft, PrimitiveApiClient as g, ReplyToEmailError as ga, ListEmailsError as gi, DeleteEndpointData as gn, TestFunctionResponses as go, FunctionDetail as gr, verifyDomain as gt, DEFAULT_API_BASE_URL_2 as h, ReplyToEmailData as ha, ListEmailsData as hi, DeleteEmailResponses as hn, TestFunctionResponse as ho, FunctionDeployStatus as hr, updateFunction as ht, ReplyInput as i, ReplayDeliveryData as ia, Limit as ii, CreateFunctionSecretResponses as in, StartCliLoginResponses as io, EmailSearchFacetBucket as ir, Client as is, sdk_gen_d_exports as it, deleteFilter as j, SendEmailData as ja, ListFunctionLogsData as ji, DeleteFunctionSecretData as jn, UpdateDomainResponses as jo, GetEmailResponse as jr, CliLogoutResponse as jt, deleteEmail as k, SearchEmailsResponse as ka, ListFiltersResponse as ki, DeleteFunctionResponse as kn, UpdateDomainInput as ko, GetEmailError as kr, CliLogoutErrors as kt, client as l, ReplayEmailWebhooksData as la, ListDeliveriesResponses as li, DeleteDomainResponse as ln, TestEndpointErrors as lo, EmailStatus as lr, RequestOptions$2 as ls, testEndpoint as lt, DEFAULT_API_BASE_URL_1 as m, ReplayResult as ma, ListDomainsResponses as mi, DeleteEmailResponse as mn, TestFunctionErrors as mo, Filter as mr, updateFilter as mt, PrimitiveClient as n, PollCliLoginResponse as na, GetWebhookSecretResponse as ni, CreateFunctionSecretInput as nn, StartCliLoginInput as no, EmailDetail as nr, WebhookSecret as ns, replyToEmail as nt, SendInput as o, ReplayDeliveryErrors as oa, ListDeliveriesError as oi, DeleteDomainData as on, SuccessEnvelope as oo, EmailSearchHighlights as or, Config as os, sendEmail as ot, verifyWebhookSignature as p, ReplayEmailWebhooksResponses as pa, ListDomainsResponse as pi, DeleteEmailErrors as pn, TestFunctionError as po, ErrorResponse as pr, Auth as ps, updateEndpoint as pt, listEndpoints as q, SetFunctionSecretData as qa, ListSentEmailsError as qi, DownloadAttachmentsError as qn, UpdateFunctionInput as qo, GetSentEmailResponses as qr, CreateFunctionError as qt, PrimitiveClientOptions as r, PollCliLoginResponses as ra, GetWebhookSecretResponses as ri, CreateFunctionSecretResponse as rn, StartCliLoginResponse as ro, EmailDetailReply as rr, createClient as rs, rotateWebhookSecret as rt, SendResult as s, ReplayDeliveryResponse as sa, ListDeliveriesErrors as si, DeleteDomainError as sn, TestEndpointData as so, EmailSearchMeta as sr, CreateClientConfig as ss, setFunctionSecret as st, ForwardInput as t, PollCliLoginInput as ta, GetWebhookSecretErrors as ti, CreateFunctionSecretErrors as tn, StartCliLoginErrors as to, DownloadRawEmailResponses as tr, VerifyDomainResponses as ts, replayEmailWebhooks as tt, createPrimitiveClient as u, ReplayEmailWebhooksError as ua, ListDomainsData as ui, DeleteDomainResponses as un, TestEndpointResponse as uo, EmailSummary as ur, RequestResult as us, testFunction as ut, PrimitiveApiError as v, ReplyToEmailResponse as va, ListEmailsResponse as vi, DeleteEndpointErrors as vn, TestResult as vo, FunctionLogRow as vr, AccountUpdated as vt, createEndpoint as w, RotateWebhookSecretResponse as wa, ListEndpointsResponses as wi, DeleteFilterResponse as wn, UpdateAccountResponse as wo, GetAccountError as wr, AddDomainResponses as wt, createPrimitiveApiClient as x, RotateWebhookSecretData as xa, ListEndpointsError as xi, DeleteFilterData as xn, UpdateAccountError as xo, GateDenial as xr, AddDomainErrors as xt, PrimitiveApiErrorDetails as y, ReplyToEmailResponses as ya, ListEmailsResponses as yi, DeleteEndpointResponse as yn, UnverifiedDomain as yo, FunctionSecretListItem as yr, AddDomainData as yt, getFunction as z, SendPermissionAnyRecipient as za, ListFunctionSecretsResponse as zi, DiscardEmailContentData as zn, UpdateFilterError as zo, GetSendPermissionsError as zr, CreateEndpointResponses as zt };
4929
+ export { listSentEmails as $, SearchEmailsData as $a, ListFunctionLogsError as $i, DownloadAttachmentsData as $n, UpdateAccountData as $o, GetFunctionResponses as $r, CreateFunctionData as $t, deleteEndpoint as A, ReplayEmailWebhooksData as Aa, ListDeliveriesResponses as Ai, DeleteFilterErrors as An, StartCliLoginResponse as Ao, FunctionTestRunDeliveryEndpoint as Ar, VerifyCliSignupData as As, CliLoginStartResult as At, getFunctionTestRunTrace as B, ReplyToEmailResponses as Ba, ListEmailsResponses as Bi, DeleteFunctionSecretErrors as Bn, TestEndpointData as Bo, GetAccountError as Br, VerifyDomainResponses as Bs, CliSignupVerifyResult as Bt, cliLogout as C, PollCliLoginResponse as Ca, GetWebhookSecretResponse as Ci, DeleteEndpointData as Cn, SetFunctionSecretInput as Co, FunctionDetail as Cr, UpdateFunctionData as Cs, AddDomainData as Ct, createFunctionSecret as D, ReplayDeliveryErrors as Da, ListDeliveriesError as Di, DeleteEndpointResponses as Dn, StartCliLoginError as Do, FunctionSecretWriteResult as Dr, UpdateFunctionResponse as Ds, AddDomainResponse as Dt, createFunction as E, ReplayDeliveryError as Ea, ListDeliveriesData as Ei, DeleteEndpointResponse as En, StartCliLoginData as Eo, FunctionSecretListItem as Er, UpdateFunctionInput as Es, AddDomainInput as Et, downloadAttachments as F, ReplayResult as Fa, ListDomainsResponses as Fi, DeleteFunctionErrors as Fn, StartCliSignupInput as Fo, FunctionTestRunState as Fr, VerifyCliSignupResponses as Fs, CliLogoutResponse as Ft, listDeliveries as G, ResendCliSignupVerificationResponse as Ga, ListEndpointsResponses as Gi, DiscardContentResult as Gn, TestFunctionData as Go, GetEmailError as Gr, Config as Gs, CreateEndpointResponse as Gt, getSentEmail as H, ResendCliSignupVerificationError as Ha, ListEndpointsError as Hi, DeleteFunctionSecretResponses as Hn, TestEndpointErrors as Ho, GetAccountResponse as Hr, createClient as Hs, CreateEndpointError as Ht, downloadRawEmail as I, ReplyToEmailData as Ia, ListEmailsData as Ii, DeleteFunctionResponse as In, StartCliSignupResponse as Io, FunctionTestRunTrace as Ir, VerifyDomainData as Is, CliLogoutResponses as It, listEndpoints as J, RotateWebhookSecretData as Ja, ListFiltersError as Ji, DiscardEmailContentErrors as Jn, TestFunctionResponse as Jo, GetEmailResponses as Jr, RequestOptions$2 as Js, CreateFilterError as Jt, listDomains as K, ResendCliSignupVerificationResponses as Ka, ListEnvelope as Ki, DiscardEmailContentData as Kn, TestFunctionError as Ko, GetEmailErrors as Kr, CreateClientConfig as Ks, CreateEndpointResponses as Kt, getAccount as L, ReplyToEmailError as La, ListEmailsError as Li, DeleteFunctionResponses as Ln, StartCliSignupResponses as Lo, GateDenial as Lr, VerifyDomainError as Ls, CliLogoutResult as Lt, deleteFunction as M, ReplayEmailWebhooksErrors as Ma, ListDomainsError as Mi, DeleteFilterResponses as Mn, StartCliSignupData as Mo, FunctionTestRunOutboundRequest as Mr, VerifyCliSignupErrors as Ms, CliLogoutError as Mt, deleteFunctionSecret as N, ReplayEmailWebhooksResponse as Na, ListDomainsErrors as Ni, DeleteFunctionData as Nn, StartCliSignupError as No, FunctionTestRunReply as Nr, VerifyCliSignupInput as Ns, CliLogoutErrors as Nt, deleteDomain as O, ReplayDeliveryResponse as Oa, ListDeliveriesErrors as Oi, DeleteFilterData as On, StartCliLoginErrors as Oo, FunctionTestRun as Or, UpdateFunctionResponses as Os, AddDomainResponses as Ot, discardEmailContent as P, ReplayEmailWebhooksResponses as Pa, ListDomainsResponse as Pi, DeleteFunctionError as Pn, StartCliSignupErrors as Po, FunctionTestRunSend as Pr, VerifyCliSignupResponse as Ps, CliLogoutInput as Pt, listFunctions as Q, RotateWebhookSecretResponses as Qa, ListFunctionLogsData as Qi, DomainVerifyResult as Qn, UnverifiedDomain as Qo, GetFunctionResponse as Qr, Auth as Qs, CreateFilterResponses as Qt, getEmail as R, ReplyToEmailErrors as Ra, ListEmailsErrors as Ri, DeleteFunctionSecretData as Rn, StorageStats as Ro, GateFix as Rr, VerifyDomainErrors as Rs, CliSignupResendResult as Rt, addDomain as S, PollCliLoginInput as Sa, GetWebhookSecretErrors as Si, DeleteEmailResponses as Sn, SetFunctionSecretErrors as So, FunctionDeployStatus as Sr, UpdateFilterResponses as Ss, AccountUpdated as St, createFilter as T, ReplayDeliveryData as Ta, Limit as Ti, DeleteEndpointErrors as Tn, SetFunctionSecretResponses as To, FunctionLogRow as Tr, UpdateFunctionErrors as Ts, AddDomainErrors as Tt, getStorageStats as U, ResendCliSignupVerificationErrors as Ua, ListEndpointsErrors as Ui, DeliveryStatus as Un, TestEndpointResponse as Uo, GetAccountResponses as Ur, Client as Us, CreateEndpointErrors as Ut, getSendPermissions as V, ResendCliSignupVerificationData as Va, ListEndpointsData as Vi, DeleteFunctionSecretResponse as Vn, TestEndpointError as Vo, GetAccountErrors as Vr, WebhookSecret as Vs, CreateEndpointData as Vt, getWebhookSecret as W, ResendCliSignupVerificationInput as Wa, ListEndpointsResponse as Wi, DeliverySummary as Wn, TestEndpointResponses as Wo, GetEmailData as Wr, ClientOptions as Ws, CreateEndpointInput as Wt, listFunctionLogs as X, RotateWebhookSecretErrors as Xa, ListFiltersResponse as Xi, DiscardEmailContentResponses as Xn, TestInvocationResult as Xo, GetFunctionError as Xr, ResponseStyle as Xs, CreateFilterInput as Xt, listFilters as Y, RotateWebhookSecretError as Ya, ListFiltersErrors as Yi, DiscardEmailContentResponse as Yn, TestFunctionResponses as Yo, GetFunctionData as Yr, RequestResult as Ys, CreateFilterErrors as Yt, listFunctionSecrets as Z, RotateWebhookSecretResponse as Za, ListFiltersResponses as Zi, Domain as Zn, TestResult as Zo, GetFunctionErrors as Zr, createConfig as Zs, CreateFilterResponse as Zt, PrimitiveApiClientOptions as _, ListSentEmailsResponses as _a, GetStorageStatsErrors as _i, DeleteDomainResponses as _n, SentEmailDetail as _o, EmailSummary as _r, UpdateFilterData as _s, updateFilter as _t, RequestOptions as a, ListFunctionSecretsErrors as aa, GetSendPermissionsData as ai, CreateFunctionResult as an, SendEmailError as ao, DownloadRawEmailError as ar, UpdateDomainData as as, rotateWebhookSecret as at, RequestOptions$1 as b, PollCliLoginError as ba, GetWebhookSecretData as bi, DeleteEmailErrors as bn, SetFunctionSecretData as bo, ErrorResponse as br, UpdateFilterInput as bs, verifyDomain as bt, SendThreadInput as c, ListFunctionsData as ca, GetSendPermissionsResponse as ci, CreateFunctionSecretErrors as cn, SendEmailResponses as co, DownloadRawEmailResponses as cr, UpdateDomainInput as cs, sendEmail as ct, PRIMITIVE_SIGNATURE_HEADER as d, ListFunctionsResponse as da, GetSentEmailError as di, CreateFunctionSecretResponses as dn, SendPermissionAddress as do, EmailSearchFacetBucket as dr, UpdateEndpointData as ds, startCliSignup as dt, ListFunctionLogsErrors as ea, GetFunctionTestRunTraceData as ei, CreateFunctionError as en, SearchEmailsError as eo, DownloadAttachmentsError as er, UpdateAccountError as es, pollCliLogin as et, VerifyOptions as f, ListFunctionsResponses as fa, GetSentEmailErrors as fi, Cursor as fn, SendPermissionAnyRecipient as fo, EmailSearchFacets as fr, UpdateEndpointError as fs, testEndpoint as ft, PrimitiveApiClient as g, ListSentEmailsResponse as ga, GetStorageStatsError as gi, DeleteDomainResponse as gn, SendPermissionsMeta as go, EmailStatus as gr, UpdateEndpointResponses as gs, updateEndpoint as gt, DEFAULT_API_BASE_URL_2 as h, ListSentEmailsErrors as ha, GetStorageStatsData as hi, DeleteDomainErrors as hn, SendPermissionYourDomain as ho, EmailSearchResult as hr, UpdateEndpointResponse as hs, updateDomain as ht, ReplyInput as i, ListFunctionSecretsError as ia, GetFunctionTestRunTraceResponses as ii, CreateFunctionResponses as in, SendEmailData as io, DownloadRawEmailData as ir, UpdateAccountResponses as is, resendCliSignupVerification as it, deleteFilter as j, ReplayEmailWebhooksError as ja, ListDomainsData as ji, DeleteFilterResponse as jn, StartCliLoginResponses as jo, FunctionTestRunInboundEmail as jr, VerifyCliSignupError as js, CliLogoutData as jt, deleteEmail as k, ReplayDeliveryResponses as ka, ListDeliveriesResponse as ki, DeleteFilterError as kn, StartCliLoginInput as ko, FunctionTestRunDelivery as kr, VerifiedDomain as ks, CliLoginPollResult as kt, client as l, ListFunctionsError as la, GetSendPermissionsResponses as li, CreateFunctionSecretInput as ln, SendMailInput as lo, EmailDetail as lr, UpdateDomainResponse as ls, setFunctionSecret as lt, DEFAULT_API_BASE_URL_1 as m, ListSentEmailsError as ma, GetSentEmailResponses as mi, DeleteDomainError as mn, SendPermissionRule as mo, EmailSearchMeta as mr, UpdateEndpointInput as ms, updateAccount as mt, PrimitiveClient as n, ListFunctionLogsResponses as na, GetFunctionTestRunTraceErrors as ni, CreateFunctionInput as nn, SearchEmailsResponse as no, DownloadAttachmentsResponse as nr, UpdateAccountInput as ns, replayEmailWebhooks as nt, SendInput as o, ListFunctionSecretsResponse as oa, GetSendPermissionsError as oi, CreateFunctionSecretData as on, SendEmailErrors as oo, DownloadRawEmailErrors as or, UpdateDomainError as os, sdk_gen_d_exports as ot, verifyWebhookSignature as p, ListSentEmailsData as pa, GetSentEmailResponse as pi, DeleteDomainData as pn, SendPermissionManagedZone as po, EmailSearchHighlights as pr, UpdateEndpointErrors as ps, testFunction as pt, listEmails as q, ResourceId as qa, ListFiltersData as qi, DiscardEmailContentError as qn, TestFunctionErrors as qo, GetEmailResponse as qr, Options$1 as qs, CreateFilterData as qt, PrimitiveClientOptions as r, ListFunctionSecretsData as ra, GetFunctionTestRunTraceResponse as ri, CreateFunctionResponse as rn, SearchEmailsResponses as ro, DownloadAttachmentsResponses as rr, UpdateAccountResponse as rs, replyToEmail as rt, SendResult as s, ListFunctionSecretsResponses as sa, GetSendPermissionsErrors as si, CreateFunctionSecretError as sn, SendEmailResponse as so, DownloadRawEmailResponse as sr, UpdateDomainErrors as ss, searchEmails as st, ForwardInput as t, ListFunctionLogsResponse as ta, GetFunctionTestRunTraceError as ti, CreateFunctionErrors as tn, SearchEmailsErrors as to, DownloadAttachmentsErrors as tr, UpdateAccountErrors as ts, replayDelivery as tt, createPrimitiveClient as u, ListFunctionsErrors as ua, GetSentEmailData as ui, CreateFunctionSecretResponse as un, SendMailResult as uo, EmailDetailReply as ur, UpdateDomainResponses as us, startCliLogin as ut, PrimitiveApiError as v, PaginationMeta as va, GetStorageStatsResponse as vi, DeleteEmailData as vn, SentEmailStatus as vo, EmailWebhookStatus as vr, UpdateFilterError as vs, updateFunction as vt, createEndpoint as w, PollCliLoginResponses as wa, GetWebhookSecretResponses as wi, DeleteEndpointError as wn, SetFunctionSecretResponse as wo, FunctionListItem as wr, UpdateFunctionError as ws, AddDomainError as wt, createPrimitiveApiClient as x, PollCliLoginErrors as xa, GetWebhookSecretError as xi, DeleteEmailResponse as xn, SetFunctionSecretError as xo, Filter as xr, UpdateFilterResponse as xs, Account as xt, PrimitiveApiErrorDetails as y, PollCliLoginData as ya, GetStorageStatsResponses as yi, DeleteEmailError as yn, SentEmailSummary as yo, Endpoint as yr, UpdateFilterErrors as ys, verifyCliSignup as yt, getFunction as z, ReplyToEmailResponse as za, ListEmailsResponse as zi, DeleteFunctionSecretError as zn, SuccessEnvelope as zo, GetAccountData as zr, VerifyDomainResponse as zs, CliSignupStartResult as zt };
@@ -1,5 +1,5 @@
1
- import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-Nslo1CU0.js";
2
- import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-T_0JE528.js";
1
+ import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-BRWDMD7H.js";
2
+ import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-CO-rv_nK.js";
3
3
 
4
4
  //#region src/validation.d.ts
5
5
  interface ValidationSuccess<T> {
@@ -566,6 +566,17 @@ declare const emailReceivedEventJsonSchema: {
566
566
  }];
567
567
  readonly description: "Parsed BCC header addresses. Null if the email had no BCC header. Note: BCC is only available for outgoing emails or when explicitly provided.";
568
568
  };
569
+ readonly to_addresses: {
570
+ readonly anyOf: [{
571
+ readonly type: "array";
572
+ readonly items: {
573
+ readonly $ref: "#/definitions/EmailAddress";
574
+ };
575
+ }, {
576
+ readonly type: "null";
577
+ }];
578
+ readonly description: "Parsed To header addresses. Null if the email had no To header.";
579
+ };
569
580
  readonly in_reply_to: {
570
581
  readonly anyOf: [{
571
582
  readonly type: "array";
@@ -604,7 +615,7 @@ declare const emailReceivedEventJsonSchema: {
604
615
  readonly description: "URL to download all attachments as a tar.gz archive. Null if the email had no attachments. Managed Primitive always issues HTTPS. Self-host deployments may issue HTTP URLs that resolve inside the operator's network. URL expires - check the expiration before downloading.";
605
616
  };
606
617
  };
607
- readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "in_reply_to", "references", "attachments", "attachments_download_url"];
618
+ readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "to_addresses", "in_reply_to", "references", "attachments", "attachments_download_url"];
608
619
  readonly description: "Parsed email content when parsing succeeded.\n\nUse the discriminant `status: \"complete\"` to narrow from {@link ParsedData } .";
609
620
  };
610
621
  readonly EmailAddress: {
@@ -688,6 +699,10 @@ declare const emailReceivedEventJsonSchema: {
688
699
  readonly type: "null";
689
700
  readonly description: "Always null when parsing fails.";
690
701
  };
702
+ readonly to_addresses: {
703
+ readonly type: "null";
704
+ readonly description: "Always null when parsing fails.";
705
+ };
691
706
  readonly in_reply_to: {
692
707
  readonly type: "null";
693
708
  readonly description: "Always null when parsing fails.";
@@ -708,7 +723,7 @@ declare const emailReceivedEventJsonSchema: {
708
723
  readonly description: "Always null when parsing fails.";
709
724
  };
710
725
  };
711
- readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "in_reply_to", "references", "attachments", "attachments_download_url"];
726
+ readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "to_addresses", "in_reply_to", "references", "attachments", "attachments_download_url"];
712
727
  readonly description: "Parsed email content when parsing failed.\n\nUse the discriminant `status: \"failed\"` to narrow from {@link ParsedData } .";
713
728
  };
714
729
  readonly ParsedError: {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-9Rqocr-c.js";
2
- import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-Nslo1CU0.js";
3
- import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-T_0JE528.js";
4
- import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-EQZK4vWT.js";
1
+ import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-BUQQvkI3.js";
2
+ import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-BRWDMD7H.js";
3
+ import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-CO-rv_nK.js";
4
+ import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-D_v8-0zX.js";
5
5
 
6
6
  //#region src/index.d.ts
7
7
  declare const primitive: {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-CZIBnM4Q.js";
1
+ import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-DtnAfZka.js";
2
2
  import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "./errors-BPJGp9I6.js";
3
- import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-Bra-g1q8.js";
3
+ import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-D4FTpj38.js";
4
4
  //#region src/index.ts
5
5
  const primitive = {
6
6
  client,
@@ -1,2 +1,2 @@
1
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-T3exFpgJ.js";
1
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-B3sb0jWW.js";
2
2
  export { openapiDocument, operationManifest };