@primitivedotdev/sdk 0.19.0 → 0.20.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.
@@ -1500,6 +1500,221 @@ type DiscardContentResult = {
1500
1500
  */
1501
1501
  already_discarded: boolean;
1502
1502
  };
1503
+ /**
1504
+ * Lifecycle state of the latest deploy attempt:
1505
+ * * `pending` — deploy in flight; the runtime has not yet
1506
+ * confirmed the new bundle is live.
1507
+ * * `deployed` — the running edge handler is the latest code.
1508
+ * * `failed` — the most recent deploy attempt failed; the
1509
+ * previously-live code (if any) is still running. The
1510
+ * `deploy_error` field carries the error message.
1511
+ *
1512
+ */
1513
+ type FunctionDeployStatus = 'pending' | 'deployed' | 'failed';
1514
+ /**
1515
+ * One row from the function listing.
1516
+ */
1517
+ type FunctionListItem = {
1518
+ /**
1519
+ * Function id, also the script name in the edge runtime.
1520
+ */
1521
+ id: string;
1522
+ /**
1523
+ * Slug-style name set on creation. Stable; cannot be changed.
1524
+ */
1525
+ name: string;
1526
+ deploy_status: FunctionDeployStatus;
1527
+ /**
1528
+ * Timestamp of the most recent successful deploy. Null until the first deploy succeeds.
1529
+ */
1530
+ deployed_at?: string | null;
1531
+ /**
1532
+ * URL the platform's webhook delivery loop posts to in order
1533
+ * to invoke the function. Reference only; not directly
1534
+ * callable from outside.
1535
+ *
1536
+ */
1537
+ gateway_url: string;
1538
+ created_at: string;
1539
+ updated_at: string;
1540
+ };
1541
+ /**
1542
+ * Full function record returned by GET / PUT.
1543
+ */
1544
+ type FunctionDetail = {
1545
+ id: string;
1546
+ name: string;
1547
+ /**
1548
+ * The bundled handler source. UTF-8 string up to 1 MiB. The
1549
+ * same value most recently passed as `code` to POST or PUT.
1550
+ *
1551
+ */
1552
+ code: string;
1553
+ deploy_status: FunctionDeployStatus;
1554
+ /**
1555
+ * Error message from the most recent failed deploy, or null
1556
+ * after a successful deploy. Surface this to users to explain
1557
+ * a `failed` status without polling.
1558
+ *
1559
+ */
1560
+ deploy_error?: string | null;
1561
+ deployed_at?: string | null;
1562
+ gateway_url: string;
1563
+ created_at: string;
1564
+ updated_at: string;
1565
+ };
1566
+ type CreateFunctionInput = {
1567
+ /**
1568
+ * Slug-style name. Lowercase letters, digits, hyphens, and
1569
+ * underscores. 1 to 64 characters. Must be unique within the
1570
+ * org; a 409 is returned on collision.
1571
+ *
1572
+ */
1573
+ name: string;
1574
+ /**
1575
+ * Bundled handler as a single ESM module. Up to 1 MiB UTF-8.
1576
+ * Must export a default `{ async fetch(req, env, ctx) { ... } }`
1577
+ * object.
1578
+ *
1579
+ */
1580
+ code: string;
1581
+ /**
1582
+ * Optional source map for the bundle. Up to 5 MiB UTF-8.
1583
+ * Stored only on the runtime side (not in Primitive's
1584
+ * database) and used to symbolicate stack traces in the
1585
+ * function's logs.
1586
+ *
1587
+ */
1588
+ sourceMap?: string;
1589
+ };
1590
+ /**
1591
+ * Returned by POST /functions on a successful deploy.
1592
+ */
1593
+ type CreateFunctionResult = {
1594
+ id: string;
1595
+ name: string;
1596
+ deploy_status: FunctionDeployStatus;
1597
+ gateway_url: string;
1598
+ };
1599
+ type UpdateFunctionInput = {
1600
+ /**
1601
+ * New bundled handler. Same rules as CreateFunctionInput.code.
1602
+ */
1603
+ code: string;
1604
+ sourceMap?: string;
1605
+ };
1606
+ /**
1607
+ * Metadata returned by POST /functions/{id}/test. The send is
1608
+ * queued; the actual invocation lands on the function's
1609
+ * invocations list a few seconds later as the inbound mail
1610
+ * traverses the MX path.
1611
+ *
1612
+ */
1613
+ type TestInvocationResult = {
1614
+ /**
1615
+ * Verified inbound domain the test email was sent to.
1616
+ */
1617
+ inbound_domain: string;
1618
+ /**
1619
+ * Synthetic local-part plus inbound_domain. Visible in the org's inbox.
1620
+ */
1621
+ to: string;
1622
+ /**
1623
+ * Primitive-controlled outbound sender used for the test.
1624
+ */
1625
+ from: string;
1626
+ /**
1627
+ * Outbound message id from the underlying send. NOT the
1628
+ * inbound email's id; the inbound id is created when the
1629
+ * email arrives via MX and lands on the function's
1630
+ * invocations list.
1631
+ *
1632
+ */
1633
+ send_id: string;
1634
+ /**
1635
+ * Subject placed on the test email so it can be located in the inbox.
1636
+ */
1637
+ subject: string;
1638
+ /**
1639
+ * ISO timestamp suitable as a `since` lower bound when
1640
+ * polling /emails for the inbound's arrival. Captured
1641
+ * slightly before the send to absorb light clock skew.
1642
+ *
1643
+ */
1644
+ poll_since: string;
1645
+ /**
1646
+ * Function detail page where invocations show up live.
1647
+ */
1648
+ watch_url: string;
1649
+ };
1650
+ /**
1651
+ * One row from GET /functions/{id}/secrets. Discriminate on the
1652
+ * `managed` field:
1653
+ * * `managed = true` — system secret provisioned by Primitive.
1654
+ * `description` is set; `created_at` / `updated_at` are
1655
+ * null because the row is virtual (resolved at deploy time
1656
+ * from the managed registry, not stored in the secrets
1657
+ * table).
1658
+ * * `managed = false` — secret the user set via the API.
1659
+ * `created_at` / `updated_at` are set; `description` is
1660
+ * null.
1661
+ *
1662
+ */
1663
+ type FunctionSecretListItem = {
1664
+ key: string;
1665
+ /**
1666
+ * True for managed system secrets, false for user-set entries.
1667
+ */
1668
+ managed: boolean;
1669
+ /**
1670
+ * Set on managed entries only; null on user-set entries.
1671
+ */
1672
+ description?: string | null;
1673
+ /**
1674
+ * Set on user-set entries only; null on managed entries.
1675
+ */
1676
+ created_at?: string | null;
1677
+ /**
1678
+ * Set on user-set entries only; null on managed entries.
1679
+ */
1680
+ updated_at?: string | null;
1681
+ };
1682
+ /**
1683
+ * Body for POST /functions/{id}/secrets.
1684
+ */
1685
+ type CreateFunctionSecretInput = {
1686
+ /**
1687
+ * Uppercase letters, digits, and underscores. Must start with
1688
+ * a letter or underscore. System-managed keys (e.g.
1689
+ * PRIMITIVE_WEBHOOK_SECRET) are reserved.
1690
+ *
1691
+ */
1692
+ key: string;
1693
+ /**
1694
+ * Secret value, up to 4096 UTF-8 bytes. Encrypted at rest.
1695
+ * Never returned by any read endpoint.
1696
+ *
1697
+ */
1698
+ value: string;
1699
+ };
1700
+ /**
1701
+ * Body for PUT /functions/{id}/secrets/{key}. Key comes from the path.
1702
+ */
1703
+ type SetFunctionSecretInput = {
1704
+ value: string;
1705
+ };
1706
+ /**
1707
+ * Returned by POST and PUT secret routes.
1708
+ */
1709
+ type FunctionSecretWriteResult = {
1710
+ key: string;
1711
+ created_at: string;
1712
+ updated_at: string;
1713
+ /**
1714
+ * True if this call inserted a new row, false if it updated an existing one.
1715
+ */
1716
+ created: boolean;
1717
+ };
1503
1718
  /**
1504
1719
  * Resource UUID
1505
1720
  */
@@ -2827,8 +3042,374 @@ type GetSentEmailResponses = {
2827
3042
  };
2828
3043
  };
2829
3044
  type GetSentEmailResponse = GetSentEmailResponses[keyof GetSentEmailResponses];
3045
+ type ListFunctionsData = {
3046
+ body?: never;
3047
+ path?: never;
3048
+ query?: never;
3049
+ url: '/functions';
3050
+ };
3051
+ type ListFunctionsErrors = {
3052
+ /**
3053
+ * Invalid or missing API key
3054
+ */
3055
+ 401: ErrorResponse;
3056
+ };
3057
+ type ListFunctionsError = ListFunctionsErrors[keyof ListFunctionsErrors];
3058
+ type ListFunctionsResponses = {
3059
+ /**
3060
+ * List of functions
3061
+ */
3062
+ 200: SuccessEnvelope & {
3063
+ data?: Array<FunctionListItem>;
3064
+ };
3065
+ };
3066
+ type ListFunctionsResponse = ListFunctionsResponses[keyof ListFunctionsResponses];
3067
+ type CreateFunctionData = {
3068
+ body: CreateFunctionInput;
3069
+ path?: never;
3070
+ query?: never;
3071
+ url: '/functions';
3072
+ };
3073
+ type CreateFunctionErrors = {
3074
+ /**
3075
+ * Invalid request parameters
3076
+ */
3077
+ 400: ErrorResponse;
3078
+ /**
3079
+ * Invalid or missing API key
3080
+ */
3081
+ 401: ErrorResponse;
3082
+ /**
3083
+ * A function with this name already exists in the org
3084
+ */
3085
+ 409: ErrorResponse;
3086
+ /**
3087
+ * Primitive could not complete the downstream SMTP request
3088
+ */
3089
+ 502: ErrorResponse;
3090
+ };
3091
+ type CreateFunctionError = CreateFunctionErrors[keyof CreateFunctionErrors];
3092
+ type CreateFunctionResponses = {
3093
+ /**
3094
+ * Function created and deployed
3095
+ */
3096
+ 201: SuccessEnvelope & {
3097
+ data?: CreateFunctionResult;
3098
+ };
3099
+ };
3100
+ type CreateFunctionResponse = CreateFunctionResponses[keyof CreateFunctionResponses];
3101
+ type DeleteFunctionData = {
3102
+ body?: never;
3103
+ path: {
3104
+ /**
3105
+ * Resource UUID
3106
+ */
3107
+ id: string;
3108
+ };
3109
+ query?: never;
3110
+ url: '/functions/{id}';
3111
+ };
3112
+ type DeleteFunctionErrors = {
3113
+ /**
3114
+ * Invalid or missing API key
3115
+ */
3116
+ 401: ErrorResponse;
3117
+ /**
3118
+ * Resource not found
3119
+ */
3120
+ 404: ErrorResponse;
3121
+ /**
3122
+ * Primitive could not complete the downstream SMTP request
3123
+ */
3124
+ 502: ErrorResponse;
3125
+ };
3126
+ type DeleteFunctionError = DeleteFunctionErrors[keyof DeleteFunctionErrors];
3127
+ type DeleteFunctionResponses = {
3128
+ /**
3129
+ * Resource deleted
3130
+ */
3131
+ 200: SuccessEnvelope & {
3132
+ data?: {
3133
+ deleted: boolean;
3134
+ };
3135
+ };
3136
+ };
3137
+ type DeleteFunctionResponse = DeleteFunctionResponses[keyof DeleteFunctionResponses];
3138
+ type GetFunctionData = {
3139
+ body?: never;
3140
+ path: {
3141
+ /**
3142
+ * Resource UUID
3143
+ */
3144
+ id: string;
3145
+ };
3146
+ query?: never;
3147
+ url: '/functions/{id}';
3148
+ };
3149
+ type GetFunctionErrors = {
3150
+ /**
3151
+ * Invalid or missing API key
3152
+ */
3153
+ 401: ErrorResponse;
3154
+ /**
3155
+ * Resource not found
3156
+ */
3157
+ 404: ErrorResponse;
3158
+ };
3159
+ type GetFunctionError = GetFunctionErrors[keyof GetFunctionErrors];
3160
+ type GetFunctionResponses = {
3161
+ /**
3162
+ * Function record
3163
+ */
3164
+ 200: SuccessEnvelope & {
3165
+ data?: FunctionDetail;
3166
+ };
3167
+ };
3168
+ type GetFunctionResponse = GetFunctionResponses[keyof GetFunctionResponses];
3169
+ type UpdateFunctionData = {
3170
+ body: UpdateFunctionInput;
3171
+ path: {
3172
+ /**
3173
+ * Resource UUID
3174
+ */
3175
+ id: string;
3176
+ };
3177
+ query?: never;
3178
+ url: '/functions/{id}';
3179
+ };
3180
+ type UpdateFunctionErrors = {
3181
+ /**
3182
+ * Invalid request parameters
3183
+ */
3184
+ 400: ErrorResponse;
3185
+ /**
3186
+ * Invalid or missing API key
3187
+ */
3188
+ 401: ErrorResponse;
3189
+ /**
3190
+ * Resource not found
3191
+ */
3192
+ 404: ErrorResponse;
3193
+ /**
3194
+ * Primitive could not complete the downstream SMTP request
3195
+ */
3196
+ 502: ErrorResponse;
3197
+ };
3198
+ type UpdateFunctionError = UpdateFunctionErrors[keyof UpdateFunctionErrors];
3199
+ type UpdateFunctionResponses = {
3200
+ /**
3201
+ * Updated function
3202
+ */
3203
+ 200: SuccessEnvelope & {
3204
+ data?: FunctionDetail;
3205
+ };
3206
+ };
3207
+ type UpdateFunctionResponse = UpdateFunctionResponses[keyof UpdateFunctionResponses];
3208
+ type TestFunctionData = {
3209
+ body?: never;
3210
+ path: {
3211
+ /**
3212
+ * Resource UUID
3213
+ */
3214
+ id: string;
3215
+ };
3216
+ query?: never;
3217
+ url: '/functions/{id}/test';
3218
+ };
3219
+ type TestFunctionErrors = {
3220
+ /**
3221
+ * Invalid request parameters
3222
+ */
3223
+ 400: ErrorResponse;
3224
+ /**
3225
+ * Invalid or missing API key
3226
+ */
3227
+ 401: ErrorResponse;
3228
+ /**
3229
+ * Resource not found
3230
+ */
3231
+ 404: ErrorResponse;
3232
+ /**
3233
+ * Function not in a state that can be invoked, or no inbound domain configured
3234
+ */
3235
+ 422: ErrorResponse;
3236
+ /**
3237
+ * Primitive could not complete the downstream SMTP request
3238
+ */
3239
+ 502: ErrorResponse;
3240
+ /**
3241
+ * Sending agent misconfigured
3242
+ */
3243
+ 503: ErrorResponse;
3244
+ };
3245
+ type TestFunctionError = TestFunctionErrors[keyof TestFunctionErrors];
3246
+ type TestFunctionResponses = {
3247
+ /**
3248
+ * Test send queued
3249
+ */
3250
+ 200: SuccessEnvelope & {
3251
+ data?: TestInvocationResult;
3252
+ };
3253
+ };
3254
+ type TestFunctionResponse = TestFunctionResponses[keyof TestFunctionResponses];
3255
+ type ListFunctionSecretsData = {
3256
+ body?: never;
3257
+ path: {
3258
+ /**
3259
+ * Resource UUID
3260
+ */
3261
+ id: string;
3262
+ };
3263
+ query?: never;
3264
+ url: '/functions/{id}/secrets';
3265
+ };
3266
+ type ListFunctionSecretsErrors = {
3267
+ /**
3268
+ * Invalid or missing API key
3269
+ */
3270
+ 401: ErrorResponse;
3271
+ /**
3272
+ * Resource not found
3273
+ */
3274
+ 404: ErrorResponse;
3275
+ };
3276
+ type ListFunctionSecretsError = ListFunctionSecretsErrors[keyof ListFunctionSecretsErrors];
3277
+ type ListFunctionSecretsResponses = {
3278
+ /**
3279
+ * List of secrets (metadata only, no values)
3280
+ */
3281
+ 200: SuccessEnvelope & {
3282
+ data?: {
3283
+ items: Array<FunctionSecretListItem>;
3284
+ };
3285
+ };
3286
+ };
3287
+ type ListFunctionSecretsResponse = ListFunctionSecretsResponses[keyof ListFunctionSecretsResponses];
3288
+ type CreateFunctionSecretData = {
3289
+ body: CreateFunctionSecretInput;
3290
+ path: {
3291
+ /**
3292
+ * Resource UUID
3293
+ */
3294
+ id: string;
3295
+ };
3296
+ query?: never;
3297
+ url: '/functions/{id}/secrets';
3298
+ };
3299
+ type CreateFunctionSecretErrors = {
3300
+ /**
3301
+ * Invalid request parameters
3302
+ */
3303
+ 400: ErrorResponse;
3304
+ /**
3305
+ * Invalid or missing API key
3306
+ */
3307
+ 401: ErrorResponse;
3308
+ /**
3309
+ * Resource not found
3310
+ */
3311
+ 404: ErrorResponse;
3312
+ };
3313
+ type CreateFunctionSecretError = CreateFunctionSecretErrors[keyof CreateFunctionSecretErrors];
3314
+ type CreateFunctionSecretResponses = {
3315
+ /**
3316
+ * Secret updated
3317
+ */
3318
+ 200: SuccessEnvelope & {
3319
+ data?: FunctionSecretWriteResult;
3320
+ };
3321
+ /**
3322
+ * Secret created
3323
+ */
3324
+ 201: SuccessEnvelope & {
3325
+ data?: FunctionSecretWriteResult;
3326
+ };
3327
+ };
3328
+ type CreateFunctionSecretResponse = CreateFunctionSecretResponses[keyof CreateFunctionSecretResponses];
3329
+ type DeleteFunctionSecretData = {
3330
+ body?: never;
3331
+ path: {
3332
+ /**
3333
+ * Resource UUID
3334
+ */
3335
+ id: string;
3336
+ /**
3337
+ * Secret key. Must match `^[A-Z_][A-Z0-9_]*$`.
3338
+ */
3339
+ key: string;
3340
+ };
3341
+ query?: never;
3342
+ url: '/functions/{id}/secrets/{key}';
3343
+ };
3344
+ type DeleteFunctionSecretErrors = {
3345
+ /**
3346
+ * Invalid request parameters
3347
+ */
3348
+ 400: ErrorResponse;
3349
+ /**
3350
+ * Invalid or missing API key
3351
+ */
3352
+ 401: ErrorResponse;
3353
+ /**
3354
+ * Resource not found
3355
+ */
3356
+ 404: ErrorResponse;
3357
+ };
3358
+ type DeleteFunctionSecretError = DeleteFunctionSecretErrors[keyof DeleteFunctionSecretErrors];
3359
+ type DeleteFunctionSecretResponses = {
3360
+ /**
3361
+ * Secret deleted
3362
+ */
3363
+ 204: void;
3364
+ };
3365
+ type DeleteFunctionSecretResponse = DeleteFunctionSecretResponses[keyof DeleteFunctionSecretResponses];
3366
+ type SetFunctionSecretData = {
3367
+ body: SetFunctionSecretInput;
3368
+ path: {
3369
+ /**
3370
+ * Resource UUID
3371
+ */
3372
+ id: string;
3373
+ /**
3374
+ * Secret key. Must match `^[A-Z_][A-Z0-9_]*$`.
3375
+ */
3376
+ key: string;
3377
+ };
3378
+ query?: never;
3379
+ url: '/functions/{id}/secrets/{key}';
3380
+ };
3381
+ type SetFunctionSecretErrors = {
3382
+ /**
3383
+ * Invalid request parameters
3384
+ */
3385
+ 400: ErrorResponse;
3386
+ /**
3387
+ * Invalid or missing API key
3388
+ */
3389
+ 401: ErrorResponse;
3390
+ /**
3391
+ * Resource not found
3392
+ */
3393
+ 404: ErrorResponse;
3394
+ };
3395
+ type SetFunctionSecretError = SetFunctionSecretErrors[keyof SetFunctionSecretErrors];
3396
+ type SetFunctionSecretResponses = {
3397
+ /**
3398
+ * Secret updated
3399
+ */
3400
+ 200: SuccessEnvelope & {
3401
+ data?: FunctionSecretWriteResult;
3402
+ };
3403
+ /**
3404
+ * Secret created
3405
+ */
3406
+ 201: SuccessEnvelope & {
3407
+ data?: FunctionSecretWriteResult;
3408
+ };
3409
+ };
3410
+ type SetFunctionSecretResponse = SetFunctionSecretResponses[keyof SetFunctionSecretResponses];
2830
3411
  declare namespace sdk_gen_d_exports {
2831
- export { Options, addDomain, cliLogout, createEndpoint, createFilter, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, sendEmail, startCliLogin, testEndpoint, updateAccount, updateDomain, updateEndpoint, updateFilter, verifyDomain };
3412
+ 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, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, sendEmail, setFunctionSecret, startCliLogin, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyDomain };
2832
3413
  }
2833
3414
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
2834
3415
  /**
@@ -3252,6 +3833,155 @@ declare const listSentEmails: <ThrowOnError extends boolean = false>(options?: O
3252
3833
  *
3253
3834
  */
3254
3835
  declare const getSentEmail: <ThrowOnError extends boolean = false>(options: Options<GetSentEmailData, ThrowOnError>) => RequestResult<GetSentEmailResponses, GetSentEmailErrors, ThrowOnError, "fields">;
3836
+ /**
3837
+ * List functions
3838
+ *
3839
+ * Returns every active (non-deleted) function in the org, newest
3840
+ * first. Each entry carries the deploy status and the gateway URL
3841
+ * that the platform's webhook delivery loop posts to. To inspect
3842
+ * the source code or deploy errors, use `GET /functions/{id}`.
3843
+ *
3844
+ */
3845
+ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Options<ListFunctionsData, ThrowOnError>) => RequestResult<ListFunctionsResponses, ListFunctionsErrors, ThrowOnError, "fields">;
3846
+ /**
3847
+ * Deploy a function
3848
+ *
3849
+ * Creates and deploys a new function. The handler must be a single
3850
+ * ESM module that exports a default async function receiving the
3851
+ * `email.received` event (see the Webhook payload section for the
3852
+ * full schema). Code is bundled before being uploaded; ship a
3853
+ * single self-contained file rather than relying on external
3854
+ * imports.
3855
+ *
3856
+ * **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
3857
+ * (optional) is capped at 5 MiB UTF-8 and is stored only on the
3858
+ * edge runtime side; it is not persisted in Primitive's database.
3859
+ *
3860
+ * **Auto-wiring.** On successful deploy, Primitive automatically
3861
+ * creates a webhook endpoint that delivers inbound mail to the
3862
+ * function. There is nothing to configure on the Endpoints API
3863
+ * for this to work; the gateway URL returned here is for
3864
+ * reference only and is not directly callable from outside.
3865
+ *
3866
+ * **Secrets.** New functions ship with the managed secrets
3867
+ * (`PRIMITIVE_WEBHOOK_SECRET`, `PRIMITIVE_API_KEY`) already
3868
+ * bound. Add user-set secrets via
3869
+ * `POST /functions/{id}/secrets`; secret writes only land in the
3870
+ * running handler on the next redeploy.
3871
+ *
3872
+ */
3873
+ declare const createFunction: <ThrowOnError extends boolean = false>(options: Options<CreateFunctionData, ThrowOnError>) => RequestResult<CreateFunctionResponses, CreateFunctionErrors, ThrowOnError, "fields">;
3874
+ /**
3875
+ * Delete a function
3876
+ *
3877
+ * Soft-deletes the function row, removes the script from the edge
3878
+ * runtime, and deactivates the auto-wired webhook endpoint so no
3879
+ * further inbound mail is delivered. Past deploy history,
3880
+ * invocations, and logs are retained.
3881
+ *
3882
+ * Returns 502 if the runtime delete fails partway; the function
3883
+ * row stays in place and the call is safe to retry until it
3884
+ * succeeds.
3885
+ *
3886
+ */
3887
+ declare const deleteFunction: <ThrowOnError extends boolean = false>(options: Options<DeleteFunctionData, ThrowOnError>) => RequestResult<DeleteFunctionResponses, DeleteFunctionErrors, ThrowOnError, "fields">;
3888
+ /**
3889
+ * Get a function
3890
+ *
3891
+ * Returns the full record for a function, including its current
3892
+ * source code and the deploy status / error from the most recent
3893
+ * deploy attempt.
3894
+ *
3895
+ */
3896
+ declare const getFunction: <ThrowOnError extends boolean = false>(options: Options<GetFunctionData, ThrowOnError>) => RequestResult<GetFunctionResponses, GetFunctionErrors, ThrowOnError, "fields">;
3897
+ /**
3898
+ * Update and redeploy a function
3899
+ *
3900
+ * Replaces the function's source code with the body's `code` and
3901
+ * triggers a redeploy. Same size limits as `POST /functions`.
3902
+ * Use this verb to push secret writes into the running handler:
3903
+ * passing the same `code` re-runs the deploy and refreshes the
3904
+ * binding set with the latest values from the secrets table.
3905
+ *
3906
+ * On a 502 deploy failure, the previously-deployed code stays
3907
+ * live; the runtime never serves a half-built bundle. The
3908
+ * `deploy_error` field on the returned record carries the error
3909
+ * that came back from the runtime so you can surface it to users
3910
+ * without polling.
3911
+ *
3912
+ */
3913
+ declare const updateFunction: <ThrowOnError extends boolean = false>(options: Options<UpdateFunctionData, ThrowOnError>) => RequestResult<UpdateFunctionResponses, UpdateFunctionErrors, ThrowOnError, "fields">;
3914
+ /**
3915
+ * Send a test invocation
3916
+ *
3917
+ * Sends a real test email from a Primitive-controlled sender to a
3918
+ * synthetic local-part on one of the org's verified inbound
3919
+ * domains. The function fires through the normal MX delivery
3920
+ * path, so reply / send-mail calls from inside the handler
3921
+ * against the inbound's `email.id` work the same as in
3922
+ * production. Returns immediately after the send is queued; the
3923
+ * invocation appears on the function's invocations list within a
3924
+ * few seconds.
3925
+ *
3926
+ * Requires that the function is currently `deployed`. Returns 422
3927
+ * if the function is in `pending` or `failed` state, or if the
3928
+ * org has no verified inbound domain to receive the test mail.
3929
+ *
3930
+ */
3931
+ declare const testFunction: <ThrowOnError extends boolean = false>(options: Options<TestFunctionData, ThrowOnError>) => RequestResult<TestFunctionResponses, TestFunctionErrors, ThrowOnError, "fields">;
3932
+ /**
3933
+ * List a function's secrets
3934
+ *
3935
+ * Returns metadata for every secret bound to the function, with
3936
+ * managed entries (provisioned by Primitive) listed first and
3937
+ * user-set entries listed alphabetically after. **Values are
3938
+ * never returned.** Secret writes are write-only.
3939
+ *
3940
+ * Managed entries (e.g. `PRIMITIVE_WEBHOOK_SECRET`,
3941
+ * `PRIMITIVE_API_KEY`) carry a `description` instead of
3942
+ * `created_at` / `updated_at`. They cannot be created, updated,
3943
+ * or deleted via this API.
3944
+ *
3945
+ */
3946
+ declare const listFunctionSecrets: <ThrowOnError extends boolean = false>(options: Options<ListFunctionSecretsData, ThrowOnError>) => RequestResult<ListFunctionSecretsResponses, ListFunctionSecretsErrors, ThrowOnError, "fields">;
3947
+ /**
3948
+ * Create or update a secret
3949
+ *
3950
+ * Idempotent insert-or-update keyed on `(function_id, key)`.
3951
+ * Returns 201 the first time the key is set, 200 on subsequent
3952
+ * updates. Values are encrypted at rest and only become visible
3953
+ * to the running handler on the next deploy (`PUT /functions/{id}`
3954
+ * with the existing code is sufficient to refresh bindings).
3955
+ *
3956
+ * Keys must match `^[A-Z_][A-Z0-9_]*$` (uppercase letters,
3957
+ * digits, underscores; first character is a letter or
3958
+ * underscore). Values are at most 4096 UTF-8 bytes. System-
3959
+ * managed keys are reserved and rejected.
3960
+ *
3961
+ */
3962
+ declare const createFunctionSecret: <ThrowOnError extends boolean = false>(options: Options<CreateFunctionSecretData, ThrowOnError>) => RequestResult<CreateFunctionSecretResponses, CreateFunctionSecretErrors, ThrowOnError, "fields">;
3963
+ /**
3964
+ * Delete a secret
3965
+ *
3966
+ * Removes the secret. The binding stays live in the running
3967
+ * handler until the next deploy refreshes the binding set
3968
+ * (`PUT /functions/{id}` with the existing code is sufficient).
3969
+ * Returns 404 if the key did not exist. Managed system keys
3970
+ * cannot be deleted.
3971
+ *
3972
+ */
3973
+ declare const deleteFunctionSecret: <ThrowOnError extends boolean = false>(options: Options<DeleteFunctionSecretData, ThrowOnError>) => RequestResult<DeleteFunctionSecretResponses, DeleteFunctionSecretErrors, ThrowOnError, "fields">;
3974
+ /**
3975
+ * Set a secret by key
3976
+ *
3977
+ * Path-keyed companion to `POST /functions/{id}/secrets`.
3978
+ * Idempotent: returns 201 the first time the key is set, 200 on
3979
+ * subsequent updates. Same validation rules and same write-only
3980
+ * guarantees as the POST verb; the new value lands in the running
3981
+ * handler on the next deploy.
3982
+ *
3983
+ */
3984
+ declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options: Options<SetFunctionSecretData, ThrowOnError>) => RequestResult<SetFunctionSecretResponses, SetFunctionSecretErrors, ThrowOnError, "fields">;
3255
3985
  //#endregion
3256
3986
  //#region src/api/index.d.ts
3257
3987
  declare const DEFAULT_BASE_URL = "https://www.primitive.dev/api/v1";
@@ -3388,4 +4118,4 @@ declare function createPrimitiveClient(options?: PrimitiveClientOptions): Primit
3388
4118
  declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
3389
4119
  declare const operations: typeof sdk_gen_d_exports;
3390
4120
  //#endregion
3391
- export { updateFilter as $, UpdateDomainResponses as $i, GetWebhookSecretData as $n, ReplayResult as $r, DeliverySummary as $t, getAccount as A, StartCliLoginInput as Ai, GetAccountErrors as An, ListFiltersResponses as Ar, CreateFilterResponses as At, listFilters as B, TestResult as Bi, GetSendPermissionsErrors as Bn, PollCliLoginInput as Br, DeleteEmailResponse as Bt, deleteDomain as C, Options$1 as Ca, SendPermissionsMeta as Ci, Endpoint as Cn, ListEndpointsResponse as Cr, CreateEndpointResponse as Ct, discardEmailContent as D, Auth as Da, StartCliLoginData as Di, GateFix as Dn, ListFiltersError as Dr, CreateFilterErrors as Dt, deleteFilter as E, ResponseStyle as Ea, SentEmailSummary as Ei, GateDenial as En, ListFiltersData as Er, CreateFilterError as Et, getWebhookSecret as F, TestEndpointData as Fi, GetEmailErrors as Fn, ListSentEmailsResponses as Fr, DeleteDomainResponse as Ft, replyToEmail as G, UpdateAccountInput as Gi, GetSentEmailErrors as Gn, ReplayDeliveryErrors as Gr, DeleteEndpointResponse as Gt, pollCliLogin as H, UpdateAccountData as Hi, GetSendPermissionsResponses as Hn, PollCliLoginResponses as Hr, DeleteEndpointData as Ht, listDeliveries as I, TestEndpointError as Ii, GetEmailResponse as In, PaginationMeta as Ir, DeleteDomainResponses as It, startCliLogin as J, UpdateDomainData as Ji, GetStorageStatsData as Jn, ReplayEmailWebhooksData as Jr, DeleteFilterError as Jt, rotateWebhookSecret as K, UpdateAccountResponse as Ki, GetSentEmailResponse as Kn, ReplayDeliveryResponse as Kr, DeleteEndpointResponses as Kt, listDomains as L, TestEndpointErrors as Li, GetEmailResponses as Ln, PollCliLoginData as Lr, DeleteEmailData as Lt, getSendPermissions as M, StartCliLoginResponses as Mi, GetAccountResponses as Mn, ListSentEmailsError as Mr, DeleteDomainData as Mt, getSentEmail as N, StorageStats as Ni, GetEmailData as Nn, ListSentEmailsErrors as Nr, DeleteDomainError as Nt, downloadAttachments as O, StartCliLoginError as Oi, GetAccountData as On, ListFiltersErrors as Or, CreateFilterInput as Ot, getStorageStats as P, SuccessEnvelope as Pi, GetEmailError as Pn, ListSentEmailsResponse as Pr, DeleteDomainErrors as Pt, updateEndpoint as Q, UpdateDomainResponse as Qi, GetStorageStatsResponses as Qn, ReplayEmailWebhooksResponses as Qr, DeliveryStatus as Qt, listEmails as R, TestEndpointResponse as Ri, GetSendPermissionsData as Rn, PollCliLoginError as Rr, DeleteEmailError as Rt, createFilter as S, CreateClientConfig as Sa, SendPermissionYourDomain as Si, EmailWebhookStatus as Sn, ListEndpointsErrors as Sr, CreateEndpointInput as St, deleteEndpoint as T, RequestResult as Ta, SentEmailStatus as Ti, Filter as Tn, ListEnvelope as Tr, CreateFilterData as Tt, replayDelivery as U, UpdateAccountError as Ui, GetSentEmailData as Un, ReplayDeliveryData as Ur, DeleteEndpointError as Ut, listSentEmails as V, UnverifiedDomain as Vi, GetSendPermissionsResponse as Vn, PollCliLoginResponse as Vr, DeleteEmailResponses as Vt, replayEmailWebhooks as W, UpdateAccountErrors as Wi, GetSentEmailError as Wn, ReplayDeliveryError as Wr, DeleteEndpointErrors as Wt, updateAccount as X, UpdateDomainErrors as Xi, GetStorageStatsErrors as Xn, ReplayEmailWebhooksErrors as Xr, DeleteFilterResponse as Xt, testEndpoint as Y, UpdateDomainError as Yi, GetStorageStatsError as Yn, ReplayEmailWebhooksError as Yr, DeleteFilterErrors as Yt, updateDomain as Z, UpdateDomainInput as Zi, GetStorageStatsResponse as Zn, ReplayEmailWebhooksResponse as Zr, DeleteFilterResponses as Zt, operations as _, VerifyDomainResponses as _a, SendMailResult as _i, DownloadRawEmailResponses as _n, ListEmailsErrors as _r, CliLogoutResult as _t, PrimitiveApiError as a, UpdateEndpointResponses as aa, ResourceId as ai, DiscardEmailContentResponses as an, ListDeliveriesData as ar, AddDomainErrors as at, cliLogout as b, ClientOptions$1 as ba, SendPermissionManagedZone as bi, EmailStatus as bn, ListEndpointsData as br, CreateEndpointError as bt, PrimitiveClientOptions as c, UpdateFilterErrors as ca, RotateWebhookSecretErrors as ci, DownloadAttachmentsData as cn, ListDeliveriesResponse as cr, AddDomainResponses as ct, SendInput as d, UpdateFilterResponses as da, SendEmailData as di, DownloadAttachmentsResponse as dn, ListDomainsError as dr, CliLogoutData as dt, UpdateEndpointData as ea, ReplyToEmailData as ei, DiscardContentResult as en, GetWebhookSecretError as er, verifyDomain as et, SendResult as f, VerifiedDomain as fa, SendEmailError as fi, DownloadAttachmentsResponses as fn, ListDomainsErrors as fr, CliLogoutError as ft, createPrimitiveClient as g, VerifyDomainResponse as ga, SendMailInput as gi, DownloadRawEmailResponse as gn, ListEmailsError as gr, CliLogoutResponses as gt, createPrimitiveApiClient as h, VerifyDomainErrors as ha, SendEmailResponses as hi, DownloadRawEmailErrors as hn, ListEmailsData as hr, CliLogoutResponse as ht, PrimitiveApiClientOptions as i, UpdateEndpointResponse as ia, ReplyToEmailResponses as ii, DiscardEmailContentResponse as in, Limit as ir, AddDomainError as it, getEmail as j, StartCliLoginResponse as ji, GetAccountResponse as jn, ListSentEmailsData as jr, Cursor as jt, downloadRawEmail as k, StartCliLoginErrors as ki, GetAccountError as kn, ListFiltersResponse as kr, CreateFilterResponse as kt, ReplyInput as l, UpdateFilterInput as la, RotateWebhookSecretResponse as li, DownloadAttachmentsError as ln, ListDeliveriesResponses as lr, CliLoginPollResult as lt, client as m, VerifyDomainError as ma, SendEmailResponse as mi, DownloadRawEmailError as mn, ListDomainsResponses as mr, CliLogoutInput as mt, ForwardInput as n, UpdateEndpointErrors as na, ReplyToEmailErrors as ni, DiscardEmailContentError as nn, GetWebhookSecretResponse as nr, AccountUpdated as nt, PrimitiveApiErrorDetails as o, UpdateFilterData as oa, RotateWebhookSecretData as oi, Domain as on, ListDeliveriesError as or, AddDomainInput as ot, SendThreadInput as p, VerifyDomainData as pa, SendEmailErrors as pi, DownloadRawEmailData as pn, ListDomainsResponse as pr, CliLogoutErrors as pt, sendEmail as q, UpdateAccountResponses as qi, GetSentEmailResponses as qn, ReplayDeliveryResponses as qr, DeleteFilterData as qt, PrimitiveApiClient as r, UpdateEndpointInput as ra, ReplyToEmailResponse as ri, DiscardEmailContentErrors as rn, GetWebhookSecretResponses as rr, AddDomainData as rt, PrimitiveClient as s, UpdateFilterError as sa, RotateWebhookSecretError as si, DomainVerifyResult as sn, ListDeliveriesErrors as sr, AddDomainResponse as st, DEFAULT_BASE_URL as t, UpdateEndpointError as ta, ReplyToEmailError as ti, DiscardEmailContentData as tn, GetWebhookSecretErrors as tr, Account as tt, RequestOptions as u, UpdateFilterResponse as ua, RotateWebhookSecretResponses as ui, DownloadAttachmentsErrors as un, ListDomainsData as ur, CliLoginStartResult as ut, Options as v, WebhookSecret as va, SendPermissionAddress as vi, EmailDetail as vn, ListEmailsResponse as vr, ClientOptions as vt, deleteEmail as w, RequestOptions$1 as wa, SentEmailDetail as wi, ErrorResponse as wn, ListEndpointsResponses as wr, CreateEndpointResponses as wt, createEndpoint as x, Config as xa, SendPermissionRule as xi, EmailSummary as xn, ListEndpointsError as xr, CreateEndpointErrors as xt, addDomain as y, Client as ya, SendPermissionAnyRecipient as yi, EmailDetailReply as yn, ListEmailsResponses as yr, CreateEndpointData as yt, listEndpoints as z, TestEndpointResponses as zi, GetSendPermissionsError as zn, PollCliLoginErrors as zr, DeleteEmailErrors as zt };
4121
+ export { rotateWebhookSecret as $, UpdateAccountData as $a, ReplyToEmailData as $i, EmailStatus as $n, ListDomainsData as $r, CreateFunctionSecretResponses as $t, deleteFunctionSecret as A, SetFunctionSecretResponse as Aa, ListSentEmailsData as Ai, DeleteFunctionSecretResponses as An, VerifyDomainData as Ao, GetSendPermissionsResponse as Ar, CreateEndpointError as At, getWebhookSecret as B, TestEndpointData as Ba, PollCliLoginResponse as Bi, DomainVerifyResult as Bn, Options$1 as Bo, GetStorageStatsResponse as Br, CreateFilterResponses as Bt, createFunction as C, SentEmailDetail as Ca, ListFunctionSecretsResponse as Ci, DeleteFunctionErrors as Cn, UpdateFunctionData as Co, GetFunctionError as Cr, CliLogoutErrors as Ct, deleteEndpoint as D, SetFunctionSecretError as Da, ListFunctionsErrors as Di, DeleteFunctionSecretError as Dn, UpdateFunctionResponse as Do, GetSendPermissionsData as Dr, CliLogoutResult as Dt, deleteEmail as E, SetFunctionSecretData as Ea, ListFunctionsError as Ei, DeleteFunctionSecretData as En, UpdateFunctionInput as Eo, GetFunctionResponses as Er, CliLogoutResponses as Et, getEmail as F, StartCliLoginInput as Fa, PaginationMeta as Fi, DiscardEmailContentError as Fn, WebhookSecret as Fo, GetSentEmailResponse as Fr, CreateFilterData as Ft, listFilters as G, TestFunctionData as Ga, ReplayDeliveryResponse as Gi, DownloadAttachmentsResponses as Gn, GetWebhookSecretResponse as Gr, CreateFunctionResponse as Gt, listDomains as H, TestEndpointErrors as Ha, ReplayDeliveryData as Hi, DownloadAttachmentsError as Hn, RequestResult as Ho, GetWebhookSecretData as Hr, CreateFunctionError as Ht, getFunction as I, StartCliLoginResponse as Ia, PollCliLoginData as Ii, DiscardEmailContentErrors as In, Client as Io, GetSentEmailResponses as Ir, CreateFilterError as It, listSentEmails as J, TestFunctionResponse as Ja, ReplayEmailWebhooksError as Ji, DownloadRawEmailErrors as Jn, ListDeliveriesData as Jr, CreateFunctionSecretData as Jt, listFunctionSecrets as K, TestFunctionError as Ka, ReplayDeliveryResponses as Ki, DownloadRawEmailData as Kn, GetWebhookSecretResponses as Kr, CreateFunctionResponses as Kt, getSendPermissions as L, StartCliLoginResponses as La, PollCliLoginError as Li, DiscardEmailContentResponse as Ln, ClientOptions$1 as Lo, GetStorageStatsData as Lr, CreateFilterErrors as Lt, downloadAttachments as M, StartCliLoginData as Ma, ListSentEmailsErrors as Mi, DeliverySummary as Mn, VerifyDomainErrors as Mo, GetSentEmailData as Mr, CreateEndpointInput as Mt, downloadRawEmail as N, StartCliLoginError as Na, ListSentEmailsResponse as Ni, DiscardContentResult as Nn, VerifyDomainResponse as No, GetSentEmailError as Nr, CreateEndpointResponse as Nt, deleteFilter as O, SetFunctionSecretErrors as Oa, ListFunctionsResponse as Oi, DeleteFunctionSecretErrors as On, UpdateFunctionResponses as Oo, GetSendPermissionsError as Or, ClientOptions as Ot, getAccount as P, StartCliLoginErrors as Pa, ListSentEmailsResponses as Pi, DiscardEmailContentData as Pn, VerifyDomainResponses as Po, GetSentEmailErrors as Pr, CreateEndpointResponses as Pt, replyToEmail as Q, UnverifiedDomain as Qa, ReplayResult as Qi, EmailDetailReply as Qn, ListDeliveriesResponses as Qr, CreateFunctionSecretResponse as Qt, getSentEmail as R, StorageStats as Ra, PollCliLoginErrors as Ri, DiscardEmailContentResponses as Rn, Config as Ro, GetStorageStatsError as Rr, CreateFilterInput as Rt, createFilter as S, SendPermissionsMeta as Sa, ListFunctionSecretsErrors as Si, DeleteFunctionError as Sn, UpdateFilterResponses as So, GetFunctionData as Sr, CliLogoutError as St, deleteDomain as T, SentEmailSummary as Ta, ListFunctionsData as Ti, DeleteFunctionResponses as Tn, UpdateFunctionErrors as To, GetFunctionResponse as Tr, CliLogoutResponse as Tt, listEmails as U, TestEndpointResponse as Ua, ReplayDeliveryError as Ui, DownloadAttachmentsErrors as Un, ResponseStyle as Uo, GetWebhookSecretError as Ur, CreateFunctionErrors as Ut, listDeliveries as V, TestEndpointError as Va, PollCliLoginResponses as Vi, DownloadAttachmentsData as Vn, RequestOptions$1 as Vo, GetStorageStatsResponses as Vr, CreateFunctionData as Vt, listEndpoints as W, TestEndpointResponses as Wa, ReplayDeliveryErrors as Wi, DownloadAttachmentsResponse as Wn, Auth as Wo, GetWebhookSecretErrors as Wr, CreateFunctionInput as Wt, replayDelivery as X, TestInvocationResult as Xa, ReplayEmailWebhooksResponse as Xi, DownloadRawEmailResponses as Xn, ListDeliveriesErrors as Xr, CreateFunctionSecretErrors as Xt, pollCliLogin as Y, TestFunctionResponses as Ya, ReplayEmailWebhooksErrors as Yi, DownloadRawEmailResponse as Yn, ListDeliveriesError as Yr, CreateFunctionSecretError as Yt, replayEmailWebhooks as Z, TestResult as Za, ReplayEmailWebhooksResponses as Zi, EmailDetail as Zn, ListDeliveriesResponse as Zr, CreateFunctionSecretInput as Zt, operations as _, SendPermissionAddress as _a, ListFiltersErrors as _i, DeleteFilterError as _n, UpdateFilterData as _o, GetEmailData as _r, AddDomainResponse as _t, PrimitiveApiError as a, RotateWebhookSecretData as aa, ListEmailsError as ai, DeleteDomainResponses as an, UpdateDomainData as ao, FunctionDeployStatus as ar, updateAccount as at, cliLogout as b, SendPermissionRule as ba, ListFunctionSecretsData as bi, DeleteFilterResponses as bn, UpdateFilterInput as bo, GetEmailResponse as br, CliLoginStartResult as bt, PrimitiveClientOptions as c, RotateWebhookSecretResponse as ca, ListEmailsResponses as ci, DeleteEmailErrors as cn, UpdateDomainInput as co, FunctionSecretListItem as cr, updateFilter as ct, SendInput as d, SendEmailError as da, ListEndpointsErrors as di, DeleteEndpointData as dn, UpdateEndpointData as do, GateFix as dr, Account as dt, ReplyToEmailError as ea, ListDomainsError as ei, Cursor as en, UpdateAccountError as eo, EmailSummary as er, sendEmail as et, SendResult as f, SendEmailErrors as fa, ListEndpointsResponse as fi, DeleteEndpointError as fn, UpdateEndpointError as fo, GetAccountData as fr, AccountUpdated as ft, createPrimitiveClient as g, SendMailResult as ga, ListFiltersError as gi, DeleteFilterData as gn, UpdateEndpointResponses as go, GetAccountResponses as gr, AddDomainInput as gt, createPrimitiveApiClient as h, SendMailInput as ha, ListFiltersData as hi, DeleteEndpointResponses as hn, UpdateEndpointResponse as ho, GetAccountResponse as hr, AddDomainErrors as ht, PrimitiveApiClientOptions as i, ResourceId as ia, ListEmailsData as ii, DeleteDomainResponse as in, UpdateAccountResponses as io, Filter as ir, testFunction as it, discardEmailContent as j, SetFunctionSecretResponses as ja, ListSentEmailsError as ji, DeliveryStatus as jn, VerifyDomainError as jo, GetSendPermissionsResponses as jr, CreateEndpointErrors as jt, deleteFunction as k, SetFunctionSecretInput as ka, ListFunctionsResponses as ki, DeleteFunctionSecretResponse as kn, VerifiedDomain as ko, GetSendPermissionsErrors as kr, CreateEndpointData as kt, ReplyInput as l, RotateWebhookSecretResponses as la, ListEndpointsData as li, DeleteEmailResponse as ln, UpdateDomainResponse as lo, FunctionSecretWriteResult as lr, updateFunction as lt, client as m, SendEmailResponses as ma, ListEnvelope as mi, DeleteEndpointResponse as mn, UpdateEndpointInput as mo, GetAccountErrors as mr, AddDomainError as mt, ForwardInput as n, ReplyToEmailResponse as na, ListDomainsResponse as ni, DeleteDomainError as nn, UpdateAccountInput as no, Endpoint as nr, startCliLogin as nt, PrimitiveApiErrorDetails as o, RotateWebhookSecretError as oa, ListEmailsErrors as oi, DeleteEmailData as on, UpdateDomainError as oo, FunctionDetail as or, updateDomain as ot, SendThreadInput as p, SendEmailResponse as pa, ListEndpointsResponses as pi, DeleteEndpointErrors as pn, UpdateEndpointErrors as po, GetAccountError as pr, AddDomainData as pt, listFunctions as q, TestFunctionErrors as qa, ReplayEmailWebhooksData as qi, DownloadRawEmailError as qn, Limit as qr, CreateFunctionResult as qt, PrimitiveApiClient as r, ReplyToEmailResponses as ra, ListDomainsResponses as ri, DeleteDomainErrors as rn, UpdateAccountResponse as ro, ErrorResponse as rr, testEndpoint as rt, PrimitiveClient as s, RotateWebhookSecretErrors as sa, ListEmailsResponse as si, DeleteEmailError as sn, UpdateDomainErrors as so, FunctionListItem as sr, updateEndpoint as st, DEFAULT_BASE_URL as t, ReplyToEmailErrors as ta, ListDomainsErrors as ti, DeleteDomainData as tn, UpdateAccountErrors as to, EmailWebhookStatus as tr, setFunctionSecret as tt, RequestOptions as u, SendEmailData as ua, ListEndpointsError as ui, DeleteEmailResponses as un, UpdateDomainResponses as uo, GateDenial as ur, verifyDomain as ut, Options as v, SendPermissionAnyRecipient as va, ListFiltersResponse as vi, DeleteFilterErrors as vn, UpdateFilterError as vo, GetEmailError as vr, AddDomainResponses as vt, createFunctionSecret as w, SentEmailStatus as wa, ListFunctionSecretsResponses as wi, DeleteFunctionResponse as wn, UpdateFunctionError as wo, GetFunctionErrors as wr, CliLogoutInput as wt, createEndpoint as x, SendPermissionYourDomain as xa, ListFunctionSecretsError as xi, DeleteFunctionData as xn, UpdateFilterResponse as xo, GetEmailResponses as xr, CliLogoutData as xt, addDomain as y, SendPermissionManagedZone as ya, ListFiltersResponses as yi, DeleteFilterResponse as yn, UpdateFilterErrors as yo, GetEmailErrors as yr, CliLoginPollResult as yt, getStorageStats as z, SuccessEnvelope as za, PollCliLoginInput as zi, Domain as zn, CreateClientConfig as zo, GetStorageStatsErrors as zr, CreateFilterResponse as zt };