@amerged/ohmyhost-sdk 0.1.11 → 0.1.14

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,6 +1,87 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
3
3
  };
4
+ export type ManagedMailDomainRequest = {
5
+ domain: string;
6
+ sending: boolean;
7
+ receiving: boolean;
8
+ };
9
+ export type ManagedMailWebhookRequest = {
10
+ url: string;
11
+ };
12
+ export type ManagedMailDnsRecord = {
13
+ type: "TXT" | "CNAME" | "MX";
14
+ name: string;
15
+ value: string;
16
+ purpose: string;
17
+ status: string;
18
+ priority?: number;
19
+ };
20
+ export type ManagedMailDomain = {
21
+ domain_id: Ulid;
22
+ domain: string;
23
+ environment_id: Ulid;
24
+ sending: "disabled" | "pending" | "ready" | "failed";
25
+ receiving: "disabled" | "pending" | "ready" | "failed";
26
+ status: "ready" | "verification_pending";
27
+ configured_at: string;
28
+ observed_at: string | null;
29
+ dns_records: Array<ManagedMailDnsRecord>;
30
+ dns?: {
31
+ status: "configured" | "action_required" | "conflict";
32
+ records: Array<ManagedMailDnsRecord>;
33
+ };
34
+ webhook: {
35
+ url: string;
36
+ verified: boolean;
37
+ } | null;
38
+ next_check_after_seconds: 60 | null;
39
+ };
40
+ export type ManagedMailWebhook = {
41
+ url: string;
42
+ /**
43
+ * Server-only signing secret. Never log or send it to the browser.
44
+ */
45
+ signing_secret: string;
46
+ status: "verification_required";
47
+ };
48
+ export type ManagedMailDisabled = {
49
+ status: "disabled";
50
+ };
51
+ export type ManagedMailExpired = {
52
+ status: "expired";
53
+ };
54
+ export type ManagedMailRetryResult = {
55
+ attempted: boolean;
56
+ delivered?: boolean;
57
+ };
58
+ export type ManagedMailMessagePage = {
59
+ items: Array<{
60
+ message_id: Ulid;
61
+ received_at: string;
62
+ state: "pending" | "delivering" | "delivered" | "delivery_failed" | "expired";
63
+ attempts: number;
64
+ }>;
65
+ };
66
+ export type ManagedMailContentResult = ManagedMailExpired | ManagedMailContent;
67
+ export type ManagedMailContent = {
68
+ id: Ulid;
69
+ domain: string;
70
+ received_at: string;
71
+ expires_at: string;
72
+ from: string;
73
+ to: Array<string>;
74
+ subject: string;
75
+ text: string | null;
76
+ html: string | null;
77
+ message_id: string;
78
+ attachments: Array<{
79
+ id: string;
80
+ filename: string | null;
81
+ content_type: string;
82
+ download_path: string;
83
+ }>;
84
+ };
4
85
  /**
5
86
  * One entry for each roadmap topic; no personal data or other browsers' votes.
6
87
  */
@@ -231,34 +312,6 @@ export type PaidDomain = {
231
312
  }>;
232
313
  url: string | null;
233
314
  };
234
- export type ConfigureProjectMailDomainRequest = {
235
- domain: string;
236
- };
237
- export type ProjectMailDomain = ConfiguredProjectMailDomain | DelegatedProjectMailDomain;
238
- export type ConfiguredProjectMailDomain = {
239
- domain: string;
240
- status: "configured";
241
- configured_at: string;
242
- };
243
- export type DelegatedProjectMailDomain = {
244
- domain: string;
245
- status: "delegation_required" | "verification_pending" | "verification_failed" | "ready";
246
- configured_at: string;
247
- name_servers: [string, string, string, string];
248
- change_id: string;
249
- /**
250
- * Time of the fresh read-only provider verification, not the original configuration time.
251
- */
252
- observed_at?: string;
253
- /**
254
- * Ask the agent to check pending or failed verification again after one hour; null when ready.
255
- */
256
- next_check_after_seconds?: 3600 | null;
257
- /**
258
- * A missing tenant association is platform provisioning, not a request to rewrite DNS. Read the original operation and its failure action.
259
- */
260
- verification_issue?: "identity_missing" | "identity_verification_failed" | "dkim_verification_failed" | "dkim_records_changed" | "tenant_association_missing" | null;
261
- };
262
315
  export type PutEnvironmentSecretRequest = {
263
316
  /**
264
317
  * Write-only plaintext value. It is encrypted before persistence and never returned.
@@ -724,6 +777,10 @@ export type ProjectHandleAvailability = {
724
777
  alternatives: Array<string>;
725
778
  };
726
779
  export type ProjectStatus = {
780
+ /**
781
+ * Optimistic-concurrency token for changing this project address; use it as If-Match on the handle endpoint.
782
+ */
783
+ etag: string;
727
784
  project_id: Ulid;
728
785
  handle: string;
729
786
  region: HostingRegion;
@@ -749,7 +806,7 @@ export type ProblemDetails = {
749
806
  status: number;
750
807
  detail?: string;
751
808
  instance?: string;
752
- code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "storage_jurisdiction_conflict" | "framework_conversion_required" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable";
809
+ code: "invalid_request" | "unauthenticated" | "forbidden" | "organization_required" | "resource_not_found" | "idempotency_key_reused" | "project_handle_unavailable" | "project_identity_unavailable" | "deployment_plan_expired" | "deployment_plan_incompatible" | "confirmation_expired" | "confirmation_invalid" | "etag_mismatch" | "promotion_source_stale" | "promotion_target_stale" | "promotion_invalid_target" | "mail_domain_conflict" | "mail_domain_required" | "storage_jurisdiction_conflict" | "framework_conversion_required" | "repository_configuration_missing" | "migration_filename_noncanonical" | "environment_secret_mutation_blocked" | "workers_runtime_incompatible" | "project_handle_invalid" | "project_handle_taken" | "project_handle_unchanged" | "project_rename_blocked" | "payload_too_large" | "rate_limited" | "insufficient_organization_credits" | "paid_plan_required" | "project_budget_exceeded" | "compute_performance_paid_required" | "compute_performance_unavailable" | "database_write_pending" | "database_access_limit" | "compute_change_pending" | "compute_change_conflict" | "billing_purchase_conflict" | "billing_recharge_conflict" | "github_connection_required" | "github_connection_revoked" | "repository_not_installed" | "cloudflare_zone_not_bound" | "cloudflare_authorization_closed" | "project_notes_conflict" | "project_export_not_ready" | "interactive_login_required" | "api_key_creation_uncertain" | "api_key_permissions_unavailable" | "reconciliation_exhausted" | "service_unavailable";
753
810
  request_id: string;
754
811
  retryable: boolean;
755
812
  /**
@@ -3278,8 +3335,13 @@ export type GetCloudflareDnsAuthorizationStatusResponses = {
3278
3335
  200: CloudflareDnsAuthorizationStatus;
3279
3336
  };
3280
3337
  export type GetCloudflareDnsAuthorizationStatusResponse = GetCloudflareDnsAuthorizationStatusResponses[keyof GetCloudflareDnsAuthorizationStatusResponses];
3281
- export type ConfigureProjectDomainsData = {
3282
- body?: never;
3338
+ export type ChangeProjectHandleData = {
3339
+ body: {
3340
+ /**
3341
+ * One to five lowercase words of letters and digits.
3342
+ */
3343
+ handle: string;
3344
+ };
3283
3345
  headers: {
3284
3346
  /**
3285
3347
  * Optional caller-provided correlation identifier.
@@ -3289,6 +3351,10 @@ export type ConfigureProjectDomainsData = {
3289
3351
  * Identifies one mutation and its canonical request payload.
3290
3352
  */
3291
3353
  "Idempotency-Key": string;
3354
+ /**
3355
+ * Exact ETag returned for the current project or deployment state.
3356
+ */
3357
+ "If-Match": string;
3292
3358
  };
3293
3359
  path: {
3294
3360
  /**
@@ -3297,9 +3363,9 @@ export type ConfigureProjectDomainsData = {
3297
3363
  project_id: Ulid;
3298
3364
  };
3299
3365
  query?: never;
3300
- url: "/v1/projects/{project_id}/domains";
3366
+ url: "/v1/projects/{project_id}/handle";
3301
3367
  };
3302
- export type ConfigureProjectDomainsErrors = {
3368
+ export type ChangeProjectHandleErrors = {
3303
3369
  /**
3304
3370
  * The request failed.
3305
3371
  */
@@ -3329,67 +3395,16 @@ export type ConfigureProjectDomainsErrors = {
3329
3395
  */
3330
3396
  503: ProblemDetails;
3331
3397
  };
3332
- export type ConfigureProjectDomainsError = ConfigureProjectDomainsErrors[keyof ConfigureProjectDomainsErrors];
3333
- export type ConfigureProjectDomainsResponses = {
3398
+ export type ChangeProjectHandleError = ChangeProjectHandleErrors[keyof ChangeProjectHandleErrors];
3399
+ export type ChangeProjectHandleResponses = {
3334
3400
  /**
3335
3401
  * The mutation was accepted for asynchronous processing.
3336
3402
  */
3337
3403
  202: Operation;
3338
3404
  };
3339
- export type ConfigureProjectDomainsResponse = ConfigureProjectDomainsResponses[keyof ConfigureProjectDomainsResponses];
3340
- export type PlanPaidProjectDomainData = {
3341
- body: PaidDomainRequest;
3342
- headers?: {
3343
- /**
3344
- * Optional caller-provided correlation identifier.
3345
- */
3346
- "X-Request-Id"?: string;
3347
- };
3348
- path: {
3349
- /**
3350
- * Project identifier.
3351
- */
3352
- project_id: Ulid;
3353
- };
3354
- query?: never;
3355
- url: "/v1/projects/{project_id}/paid-domain:plan";
3356
- };
3357
- export type PlanPaidProjectDomainErrors = {
3358
- /**
3359
- * The request failed.
3360
- */
3361
- 400: ProblemDetails;
3362
- /**
3363
- * The request failed.
3364
- */
3365
- 401: ProblemDetails;
3366
- /**
3367
- * The request failed.
3368
- */
3369
- 403: ProblemDetails;
3370
- /**
3371
- * The resource does not exist or is not visible to the authenticated principal.
3372
- */
3373
- 404: ProblemDetails;
3374
- /**
3375
- * The request failed.
3376
- */
3377
- 429: ProblemDetails;
3378
- /**
3379
- * The request failed.
3380
- */
3381
- 503: ProblemDetails;
3382
- };
3383
- export type PlanPaidProjectDomainError = PlanPaidProjectDomainErrors[keyof PlanPaidProjectDomainErrors];
3384
- export type PlanPaidProjectDomainResponses = {
3385
- /**
3386
- * Manual CNAME instructions and exact provider effects.
3387
- */
3388
- 200: PaidDomainPlan;
3389
- };
3390
- export type PlanPaidProjectDomainResponse = PlanPaidProjectDomainResponses[keyof PlanPaidProjectDomainResponses];
3391
- export type DeletePaidProjectDomainData = {
3392
- body: PaidDomainRequest;
3405
+ export type ChangeProjectHandleResponse = ChangeProjectHandleResponses[keyof ChangeProjectHandleResponses];
3406
+ export type ConfigureProjectDomainsData = {
3407
+ body?: never;
3393
3408
  headers: {
3394
3409
  /**
3395
3410
  * Optional caller-provided correlation identifier.
@@ -3407,9 +3422,9 @@ export type DeletePaidProjectDomainData = {
3407
3422
  project_id: Ulid;
3408
3423
  };
3409
3424
  query?: never;
3410
- url: "/v1/projects/{project_id}/paid-domain";
3425
+ url: "/v1/projects/{project_id}/domains";
3411
3426
  };
3412
- export type DeletePaidProjectDomainErrors = {
3427
+ export type ConfigureProjectDomainsErrors = {
3413
3428
  /**
3414
3429
  * The request failed.
3415
3430
  */
@@ -3439,16 +3454,16 @@ export type DeletePaidProjectDomainErrors = {
3439
3454
  */
3440
3455
  503: ProblemDetails;
3441
3456
  };
3442
- export type DeletePaidProjectDomainError = DeletePaidProjectDomainErrors[keyof DeletePaidProjectDomainErrors];
3443
- export type DeletePaidProjectDomainResponses = {
3457
+ export type ConfigureProjectDomainsError = ConfigureProjectDomainsErrors[keyof ConfigureProjectDomainsErrors];
3458
+ export type ConfigureProjectDomainsResponses = {
3444
3459
  /**
3445
- * Exact route and custom hostname are absent.
3460
+ * The mutation was accepted for asynchronous processing.
3446
3461
  */
3447
- 200: PaidDomain;
3462
+ 202: Operation;
3448
3463
  };
3449
- export type DeletePaidProjectDomainResponse = DeletePaidProjectDomainResponses[keyof DeletePaidProjectDomainResponses];
3450
- export type GetPaidProjectDomainData = {
3451
- body?: never;
3464
+ export type ConfigureProjectDomainsResponse = ConfigureProjectDomainsResponses[keyof ConfigureProjectDomainsResponses];
3465
+ export type PlanPaidProjectDomainData = {
3466
+ body: PaidDomainRequest;
3452
3467
  headers?: {
3453
3468
  /**
3454
3469
  * Optional caller-provided correlation identifier.
@@ -3462,9 +3477,9 @@ export type GetPaidProjectDomainData = {
3462
3477
  project_id: Ulid;
3463
3478
  };
3464
3479
  query?: never;
3465
- url: "/v1/projects/{project_id}/paid-domain";
3480
+ url: "/v1/projects/{project_id}/paid-domain:plan";
3466
3481
  };
3467
- export type GetPaidProjectDomainErrors = {
3482
+ export type PlanPaidProjectDomainErrors = {
3468
3483
  /**
3469
3484
  * The request failed.
3470
3485
  */
@@ -3490,15 +3505,15 @@ export type GetPaidProjectDomainErrors = {
3490
3505
  */
3491
3506
  503: ProblemDetails;
3492
3507
  };
3493
- export type GetPaidProjectDomainError = GetPaidProjectDomainErrors[keyof GetPaidProjectDomainErrors];
3494
- export type GetPaidProjectDomainResponses = {
3508
+ export type PlanPaidProjectDomainError = PlanPaidProjectDomainErrors[keyof PlanPaidProjectDomainErrors];
3509
+ export type PlanPaidProjectDomainResponses = {
3495
3510
  /**
3496
- * Current credential-free hostname, CNAME and certificate state.
3511
+ * Manual CNAME instructions and exact provider effects.
3497
3512
  */
3498
- 200: PaidDomain;
3513
+ 200: PaidDomainPlan;
3499
3514
  };
3500
- export type GetPaidProjectDomainResponse = GetPaidProjectDomainResponses[keyof GetPaidProjectDomainResponses];
3501
- export type ApplyPaidProjectDomainData = {
3515
+ export type PlanPaidProjectDomainResponse = PlanPaidProjectDomainResponses[keyof PlanPaidProjectDomainResponses];
3516
+ export type DeletePaidProjectDomainData = {
3502
3517
  body: PaidDomainRequest;
3503
3518
  headers: {
3504
3519
  /**
@@ -3519,7 +3534,7 @@ export type ApplyPaidProjectDomainData = {
3519
3534
  query?: never;
3520
3535
  url: "/v1/projects/{project_id}/paid-domain";
3521
3536
  };
3522
- export type ApplyPaidProjectDomainErrors = {
3537
+ export type DeletePaidProjectDomainErrors = {
3523
3538
  /**
3524
3539
  * The request failed.
3525
3540
  */
@@ -3528,10 +3543,6 @@ export type ApplyPaidProjectDomainErrors = {
3528
3543
  * The request failed.
3529
3544
  */
3530
3545
  401: ProblemDetails;
3531
- /**
3532
- * The request failed.
3533
- */
3534
- 402: ProblemDetails;
3535
3546
  /**
3536
3547
  * The request failed.
3537
3548
  */
@@ -3553,15 +3564,15 @@ export type ApplyPaidProjectDomainErrors = {
3553
3564
  */
3554
3565
  503: ProblemDetails;
3555
3566
  };
3556
- export type ApplyPaidProjectDomainError = ApplyPaidProjectDomainErrors[keyof ApplyPaidProjectDomainErrors];
3557
- export type ApplyPaidProjectDomainResponses = {
3567
+ export type DeletePaidProjectDomainError = DeletePaidProjectDomainErrors[keyof DeletePaidProjectDomainErrors];
3568
+ export type DeletePaidProjectDomainResponses = {
3558
3569
  /**
3559
- * Current Cloudflare for SaaS hostname and certificate state.
3570
+ * Exact route and custom hostname are absent.
3560
3571
  */
3561
3572
  200: PaidDomain;
3562
3573
  };
3563
- export type ApplyPaidProjectDomainResponse = ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
3564
- export type GetProjectMailDomainData = {
3574
+ export type DeletePaidProjectDomainResponse = DeletePaidProjectDomainResponses[keyof DeletePaidProjectDomainResponses];
3575
+ export type GetPaidProjectDomainData = {
3565
3576
  body?: never;
3566
3577
  headers?: {
3567
3578
  /**
@@ -3576,9 +3587,9 @@ export type GetProjectMailDomainData = {
3576
3587
  project_id: Ulid;
3577
3588
  };
3578
3589
  query?: never;
3579
- url: "/v1/projects/{project_id}/mail-domain";
3590
+ url: "/v1/projects/{project_id}/paid-domain";
3580
3591
  };
3581
- export type GetProjectMailDomainErrors = {
3592
+ export type GetPaidProjectDomainErrors = {
3582
3593
  /**
3583
3594
  * The request failed.
3584
3595
  */
@@ -3604,16 +3615,16 @@ export type GetProjectMailDomainErrors = {
3604
3615
  */
3605
3616
  503: ProblemDetails;
3606
3617
  };
3607
- export type GetProjectMailDomainError = GetProjectMailDomainErrors[keyof GetProjectMailDomainErrors];
3608
- export type GetProjectMailDomainResponses = {
3618
+ export type GetPaidProjectDomainError = GetPaidProjectDomainErrors[keyof GetPaidProjectDomainErrors];
3619
+ export type GetPaidProjectDomainResponses = {
3609
3620
  /**
3610
- * The current credential-free sender-domain status.
3621
+ * Current credential-free hostname, CNAME and certificate state.
3611
3622
  */
3612
- 200: ProjectMailDomain;
3623
+ 200: PaidDomain;
3613
3624
  };
3614
- export type GetProjectMailDomainResponse = GetProjectMailDomainResponses[keyof GetProjectMailDomainResponses];
3615
- export type ConfigureProjectMailDomainData = {
3616
- body: ConfigureProjectMailDomainRequest;
3625
+ export type GetPaidProjectDomainResponse = GetPaidProjectDomainResponses[keyof GetPaidProjectDomainResponses];
3626
+ export type ApplyPaidProjectDomainData = {
3627
+ body: PaidDomainRequest;
3617
3628
  headers: {
3618
3629
  /**
3619
3630
  * Optional caller-provided correlation identifier.
@@ -3631,9 +3642,9 @@ export type ConfigureProjectMailDomainData = {
3631
3642
  project_id: Ulid;
3632
3643
  };
3633
3644
  query?: never;
3634
- url: "/v1/projects/{project_id}/mail-domain";
3645
+ url: "/v1/projects/{project_id}/paid-domain";
3635
3646
  };
3636
- export type ConfigureProjectMailDomainErrors = {
3647
+ export type ApplyPaidProjectDomainErrors = {
3637
3648
  /**
3638
3649
  * The request failed.
3639
3650
  */
@@ -3655,9 +3666,9 @@ export type ConfigureProjectMailDomainErrors = {
3655
3666
  */
3656
3667
  404: ProblemDetails;
3657
3668
  /**
3658
- * The request failed.
3669
+ * The idempotency key was already used with a different canonical request.
3659
3670
  */
3660
- 409: ProblemDetails;
3671
+ 409: IdempotencyConflictProblem;
3661
3672
  /**
3662
3673
  * The request failed.
3663
3674
  */
@@ -3667,14 +3678,14 @@ export type ConfigureProjectMailDomainErrors = {
3667
3678
  */
3668
3679
  503: ProblemDetails;
3669
3680
  };
3670
- export type ConfigureProjectMailDomainError = ConfigureProjectMailDomainErrors[keyof ConfigureProjectMailDomainErrors];
3671
- export type ConfigureProjectMailDomainResponses = {
3681
+ export type ApplyPaidProjectDomainError = ApplyPaidProjectDomainErrors[keyof ApplyPaidProjectDomainErrors];
3682
+ export type ApplyPaidProjectDomainResponses = {
3672
3683
  /**
3673
- * The immutable project sender-domain configuration and current credential-free status.
3684
+ * Current Cloudflare for SaaS hostname and certificate state.
3674
3685
  */
3675
- 200: ProjectMailDomain;
3686
+ 200: PaidDomain;
3676
3687
  };
3677
- export type ConfigureProjectMailDomainResponse = ConfigureProjectMailDomainResponses[keyof ConfigureProjectMailDomainResponses];
3688
+ export type ApplyPaidProjectDomainResponse = ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
3678
3689
  export type PlanDeploymentData = {
3679
3690
  body: PlanDeploymentRequest;
3680
3691
  headers?: {
@@ -5123,4 +5134,511 @@ export type ListAuditEventsResponses = {
5123
5134
  200: AuditEventPage;
5124
5135
  };
5125
5136
  export type ListAuditEventsResponse = ListAuditEventsResponses[keyof ListAuditEventsResponses];
5137
+ export type GetManagedMailDomainData = {
5138
+ body?: never;
5139
+ headers?: {
5140
+ /**
5141
+ * Optional caller-provided correlation identifier.
5142
+ */
5143
+ "X-Request-Id"?: string;
5144
+ };
5145
+ path: {
5146
+ project_id: Ulid;
5147
+ environment_id: Ulid;
5148
+ };
5149
+ query?: never;
5150
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain";
5151
+ };
5152
+ export type GetManagedMailDomainErrors = {
5153
+ /**
5154
+ * The request failed.
5155
+ */
5156
+ 400: ProblemDetails;
5157
+ /**
5158
+ * The request failed.
5159
+ */
5160
+ 401: ProblemDetails;
5161
+ /**
5162
+ * The request failed.
5163
+ */
5164
+ 403: ProblemDetails;
5165
+ /**
5166
+ * The request failed.
5167
+ */
5168
+ 404: ProblemDetails;
5169
+ /**
5170
+ * The request failed.
5171
+ */
5172
+ 409: ProblemDetails;
5173
+ /**
5174
+ * The request failed.
5175
+ */
5176
+ 429: ProblemDetails;
5177
+ /**
5178
+ * The request failed.
5179
+ */
5180
+ 503: ProblemDetails;
5181
+ };
5182
+ export type GetManagedMailDomainError = GetManagedMailDomainErrors[keyof GetManagedMailDomainErrors];
5183
+ export type GetManagedMailDomainResponses = {
5184
+ /**
5185
+ * Authorized mail result.
5186
+ */
5187
+ 200: ManagedMailDomain;
5188
+ };
5189
+ export type GetManagedMailDomainResponse = GetManagedMailDomainResponses[keyof GetManagedMailDomainResponses];
5190
+ export type ConfigureManagedMailDomainData = {
5191
+ body: ManagedMailDomainRequest;
5192
+ headers: {
5193
+ /**
5194
+ * Optional caller-provided correlation identifier.
5195
+ */
5196
+ "X-Request-Id"?: string;
5197
+ /**
5198
+ * Identifies one mutation and its canonical request payload.
5199
+ */
5200
+ "Idempotency-Key": string;
5201
+ };
5202
+ path: {
5203
+ project_id: Ulid;
5204
+ environment_id: Ulid;
5205
+ };
5206
+ query?: never;
5207
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain";
5208
+ };
5209
+ export type ConfigureManagedMailDomainErrors = {
5210
+ /**
5211
+ * The request failed.
5212
+ */
5213
+ 400: ProblemDetails;
5214
+ /**
5215
+ * The request failed.
5216
+ */
5217
+ 401: ProblemDetails;
5218
+ /**
5219
+ * The request failed.
5220
+ */
5221
+ 403: ProblemDetails;
5222
+ /**
5223
+ * The request failed.
5224
+ */
5225
+ 404: ProblemDetails;
5226
+ /**
5227
+ * The request failed.
5228
+ */
5229
+ 409: ProblemDetails;
5230
+ /**
5231
+ * The request failed.
5232
+ */
5233
+ 429: ProblemDetails;
5234
+ /**
5235
+ * The request failed.
5236
+ */
5237
+ 503: ProblemDetails;
5238
+ };
5239
+ export type ConfigureManagedMailDomainError = ConfigureManagedMailDomainErrors[keyof ConfigureManagedMailDomainErrors];
5240
+ export type ConfigureManagedMailDomainResponses = {
5241
+ /**
5242
+ * Authorized mail result.
5243
+ */
5244
+ 200: ManagedMailDomain;
5245
+ };
5246
+ export type ConfigureManagedMailDomainResponse = ConfigureManagedMailDomainResponses[keyof ConfigureManagedMailDomainResponses];
5247
+ export type DisableManagedMailReceivingData = {
5248
+ body?: never;
5249
+ headers: {
5250
+ /**
5251
+ * Optional caller-provided correlation identifier.
5252
+ */
5253
+ "X-Request-Id"?: string;
5254
+ /**
5255
+ * Identifies one mutation and its canonical request payload.
5256
+ */
5257
+ "Idempotency-Key": string;
5258
+ };
5259
+ path: {
5260
+ project_id: Ulid;
5261
+ environment_id: Ulid;
5262
+ };
5263
+ query?: never;
5264
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook";
5265
+ };
5266
+ export type DisableManagedMailReceivingErrors = {
5267
+ /**
5268
+ * The request failed.
5269
+ */
5270
+ 400: ProblemDetails;
5271
+ /**
5272
+ * The request failed.
5273
+ */
5274
+ 401: ProblemDetails;
5275
+ /**
5276
+ * The request failed.
5277
+ */
5278
+ 403: ProblemDetails;
5279
+ /**
5280
+ * The request failed.
5281
+ */
5282
+ 404: ProblemDetails;
5283
+ /**
5284
+ * The request failed.
5285
+ */
5286
+ 409: ProblemDetails;
5287
+ /**
5288
+ * The request failed.
5289
+ */
5290
+ 429: ProblemDetails;
5291
+ /**
5292
+ * The request failed.
5293
+ */
5294
+ 503: ProblemDetails;
5295
+ };
5296
+ export type DisableManagedMailReceivingError = DisableManagedMailReceivingErrors[keyof DisableManagedMailReceivingErrors];
5297
+ export type DisableManagedMailReceivingResponses = {
5298
+ /**
5299
+ * Authorized mail result.
5300
+ */
5301
+ 200: ManagedMailDisabled;
5302
+ };
5303
+ export type DisableManagedMailReceivingResponse = DisableManagedMailReceivingResponses[keyof DisableManagedMailReceivingResponses];
5304
+ export type PrepareManagedMailWebhookData = {
5305
+ body: ManagedMailWebhookRequest;
5306
+ headers: {
5307
+ /**
5308
+ * Optional caller-provided correlation identifier.
5309
+ */
5310
+ "X-Request-Id"?: string;
5311
+ /**
5312
+ * Identifies one mutation and its canonical request payload.
5313
+ */
5314
+ "Idempotency-Key": string;
5315
+ };
5316
+ path: {
5317
+ project_id: Ulid;
5318
+ environment_id: Ulid;
5319
+ };
5320
+ query?: never;
5321
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook";
5322
+ };
5323
+ export type PrepareManagedMailWebhookErrors = {
5324
+ /**
5325
+ * The request failed.
5326
+ */
5327
+ 400: ProblemDetails;
5328
+ /**
5329
+ * The request failed.
5330
+ */
5331
+ 401: ProblemDetails;
5332
+ /**
5333
+ * The request failed.
5334
+ */
5335
+ 403: ProblemDetails;
5336
+ /**
5337
+ * The request failed.
5338
+ */
5339
+ 404: ProblemDetails;
5340
+ /**
5341
+ * The request failed.
5342
+ */
5343
+ 409: ProblemDetails;
5344
+ /**
5345
+ * The request failed.
5346
+ */
5347
+ 429: ProblemDetails;
5348
+ /**
5349
+ * The request failed.
5350
+ */
5351
+ 503: ProblemDetails;
5352
+ };
5353
+ export type PrepareManagedMailWebhookError = PrepareManagedMailWebhookErrors[keyof PrepareManagedMailWebhookErrors];
5354
+ export type PrepareManagedMailWebhookResponses = {
5355
+ /**
5356
+ * Authorized mail result.
5357
+ */
5358
+ 200: ManagedMailWebhook;
5359
+ };
5360
+ export type PrepareManagedMailWebhookResponse = PrepareManagedMailWebhookResponses[keyof PrepareManagedMailWebhookResponses];
5361
+ export type VerifyManagedMailWebhookData = {
5362
+ body?: never;
5363
+ headers: {
5364
+ /**
5365
+ * Optional caller-provided correlation identifier.
5366
+ */
5367
+ "X-Request-Id"?: string;
5368
+ /**
5369
+ * Identifies one mutation and its canonical request payload.
5370
+ */
5371
+ "Idempotency-Key": string;
5372
+ };
5373
+ path: {
5374
+ project_id: Ulid;
5375
+ environment_id: Ulid;
5376
+ };
5377
+ query?: never;
5378
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook/verify";
5379
+ };
5380
+ export type VerifyManagedMailWebhookErrors = {
5381
+ /**
5382
+ * The request failed.
5383
+ */
5384
+ 400: ProblemDetails;
5385
+ /**
5386
+ * The request failed.
5387
+ */
5388
+ 401: ProblemDetails;
5389
+ /**
5390
+ * The request failed.
5391
+ */
5392
+ 403: ProblemDetails;
5393
+ /**
5394
+ * The request failed.
5395
+ */
5396
+ 404: ProblemDetails;
5397
+ /**
5398
+ * The request failed.
5399
+ */
5400
+ 409: ProblemDetails;
5401
+ /**
5402
+ * The request failed.
5403
+ */
5404
+ 429: ProblemDetails;
5405
+ /**
5406
+ * The request failed.
5407
+ */
5408
+ 503: ProblemDetails;
5409
+ };
5410
+ export type VerifyManagedMailWebhookError = VerifyManagedMailWebhookErrors[keyof VerifyManagedMailWebhookErrors];
5411
+ export type VerifyManagedMailWebhookResponses = {
5412
+ /**
5413
+ * Authorized mail result.
5414
+ */
5415
+ 200: ManagedMailDomain;
5416
+ };
5417
+ export type VerifyManagedMailWebhookResponse = VerifyManagedMailWebhookResponses[keyof VerifyManagedMailWebhookResponses];
5418
+ export type ListManagedMailMessagesData = {
5419
+ body?: never;
5420
+ headers?: {
5421
+ /**
5422
+ * Optional caller-provided correlation identifier.
5423
+ */
5424
+ "X-Request-Id"?: string;
5425
+ };
5426
+ path: {
5427
+ project_id: Ulid;
5428
+ environment_id: Ulid;
5429
+ };
5430
+ query?: {
5431
+ after?: Ulid;
5432
+ };
5433
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages";
5434
+ };
5435
+ export type ListManagedMailMessagesErrors = {
5436
+ /**
5437
+ * The request failed.
5438
+ */
5439
+ 400: ProblemDetails;
5440
+ /**
5441
+ * The request failed.
5442
+ */
5443
+ 401: ProblemDetails;
5444
+ /**
5445
+ * The request failed.
5446
+ */
5447
+ 403: ProblemDetails;
5448
+ /**
5449
+ * The request failed.
5450
+ */
5451
+ 404: ProblemDetails;
5452
+ /**
5453
+ * The request failed.
5454
+ */
5455
+ 409: ProblemDetails;
5456
+ /**
5457
+ * The request failed.
5458
+ */
5459
+ 429: ProblemDetails;
5460
+ /**
5461
+ * The request failed.
5462
+ */
5463
+ 503: ProblemDetails;
5464
+ };
5465
+ export type ListManagedMailMessagesError = ListManagedMailMessagesErrors[keyof ListManagedMailMessagesErrors];
5466
+ export type ListManagedMailMessagesResponses = {
5467
+ /**
5468
+ * Authorized mail result.
5469
+ */
5470
+ 200: ManagedMailMessagePage;
5471
+ };
5472
+ export type ListManagedMailMessagesResponse = ListManagedMailMessagesResponses[keyof ListManagedMailMessagesResponses];
5473
+ export type GetManagedMailMessageData = {
5474
+ body?: never;
5475
+ headers?: {
5476
+ /**
5477
+ * Optional caller-provided correlation identifier.
5478
+ */
5479
+ "X-Request-Id"?: string;
5480
+ };
5481
+ path: {
5482
+ project_id: Ulid;
5483
+ environment_id: Ulid;
5484
+ message_id: Ulid;
5485
+ };
5486
+ query?: never;
5487
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}";
5488
+ };
5489
+ export type GetManagedMailMessageErrors = {
5490
+ /**
5491
+ * The request failed.
5492
+ */
5493
+ 400: ProblemDetails;
5494
+ /**
5495
+ * The request failed.
5496
+ */
5497
+ 401: ProblemDetails;
5498
+ /**
5499
+ * The request failed.
5500
+ */
5501
+ 403: ProblemDetails;
5502
+ /**
5503
+ * The request failed.
5504
+ */
5505
+ 404: ProblemDetails;
5506
+ /**
5507
+ * The request failed.
5508
+ */
5509
+ 409: ProblemDetails;
5510
+ /**
5511
+ * The request failed.
5512
+ */
5513
+ 429: ProblemDetails;
5514
+ /**
5515
+ * The request failed.
5516
+ */
5517
+ 503: ProblemDetails;
5518
+ };
5519
+ export type GetManagedMailMessageError = GetManagedMailMessageErrors[keyof GetManagedMailMessageErrors];
5520
+ export type GetManagedMailMessageResponses = {
5521
+ /**
5522
+ * Authorized mail result.
5523
+ */
5524
+ 200: ManagedMailContentResult;
5525
+ };
5526
+ export type GetManagedMailMessageResponse = GetManagedMailMessageResponses[keyof GetManagedMailMessageResponses];
5527
+ export type RetryManagedMailMessageData = {
5528
+ body?: never;
5529
+ headers: {
5530
+ /**
5531
+ * Optional caller-provided correlation identifier.
5532
+ */
5533
+ "X-Request-Id"?: string;
5534
+ /**
5535
+ * Identifies one mutation and its canonical request payload.
5536
+ */
5537
+ "Idempotency-Key": string;
5538
+ };
5539
+ path: {
5540
+ project_id: Ulid;
5541
+ environment_id: Ulid;
5542
+ message_id: Ulid;
5543
+ };
5544
+ query?: never;
5545
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/retry";
5546
+ };
5547
+ export type RetryManagedMailMessageErrors = {
5548
+ /**
5549
+ * The request failed.
5550
+ */
5551
+ 400: ProblemDetails;
5552
+ /**
5553
+ * The request failed.
5554
+ */
5555
+ 401: ProblemDetails;
5556
+ /**
5557
+ * The request failed.
5558
+ */
5559
+ 403: ProblemDetails;
5560
+ /**
5561
+ * The request failed.
5562
+ */
5563
+ 404: ProblemDetails;
5564
+ /**
5565
+ * The request failed.
5566
+ */
5567
+ 409: ProblemDetails;
5568
+ /**
5569
+ * The request failed.
5570
+ */
5571
+ 429: ProblemDetails;
5572
+ /**
5573
+ * The request failed.
5574
+ */
5575
+ 503: ProblemDetails;
5576
+ };
5577
+ export type RetryManagedMailMessageError = RetryManagedMailMessageErrors[keyof RetryManagedMailMessageErrors];
5578
+ export type RetryManagedMailMessageResponses = {
5579
+ /**
5580
+ * Authorized mail result.
5581
+ */
5582
+ 200: ManagedMailRetryResult;
5583
+ };
5584
+ export type RetryManagedMailMessageResponse = RetryManagedMailMessageResponses[keyof RetryManagedMailMessageResponses];
5585
+ export type GetManagedMailAttachmentData = {
5586
+ body?: never;
5587
+ headers?: {
5588
+ /**
5589
+ * Optional caller-provided correlation identifier.
5590
+ */
5591
+ "X-Request-Id"?: string;
5592
+ };
5593
+ path: {
5594
+ project_id: Ulid;
5595
+ environment_id: Ulid;
5596
+ message_id: Ulid;
5597
+ attachment_id: string;
5598
+ };
5599
+ query?: never;
5600
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/attachments/{attachment_id}";
5601
+ };
5602
+ export type GetManagedMailAttachmentErrors = {
5603
+ /**
5604
+ * The request failed.
5605
+ */
5606
+ 400: ProblemDetails;
5607
+ /**
5608
+ * The request failed.
5609
+ */
5610
+ 401: ProblemDetails;
5611
+ /**
5612
+ * The request failed.
5613
+ */
5614
+ 403: ProblemDetails;
5615
+ /**
5616
+ * The request failed.
5617
+ */
5618
+ 404: ProblemDetails;
5619
+ /**
5620
+ * The request failed.
5621
+ */
5622
+ 409: ProblemDetails;
5623
+ /**
5624
+ * The request failed.
5625
+ */
5626
+ 413: ProblemDetails;
5627
+ /**
5628
+ * The request failed.
5629
+ */
5630
+ 429: ProblemDetails;
5631
+ /**
5632
+ * The request failed.
5633
+ */
5634
+ 503: ProblemDetails;
5635
+ };
5636
+ export type GetManagedMailAttachmentError = GetManagedMailAttachmentErrors[keyof GetManagedMailAttachmentErrors];
5637
+ export type GetManagedMailAttachmentResponses = {
5638
+ /**
5639
+ * Authorized mail result.
5640
+ */
5641
+ 200: ManagedMailExpired;
5642
+ };
5643
+ export type GetManagedMailAttachmentResponse = GetManagedMailAttachmentResponses[keyof GetManagedMailAttachmentResponses];
5126
5644
  //# sourceMappingURL=types.gen.d.ts.map